Alex, thanks for the diagnosis.

Not sure where the space reformat comes but can fix that one way or t'other.

rjs



On 02/22/2013 02:01 PM, Alexios Giotis wrote:
My guess is that during the processing of the AT or during the beautification 
of the XML, you are replacing
<space> </space>
with
<space />

Fixing this and changing the fonts to "Times" gives me the attached pdf.

HTH,
Alex



On 22 Feb 2013, at 22:14, Rob Sargent <rsarg...@xmission.com> wrote:

Well of course.  Silly me.

Now I have the pleasure of tracking down a NumberFormatException.  Is my file 
(attached) not useful standalone?

java.lang.NumberFormatException: null
    at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:303)
    at 
org.apache.fop.cli.AreaTreeInputHandler.renderTo(AreaTreeInputHandler.java:75)
    at org.apache.fop.cli.Main.startFOP(Main.java:177)
    at org.apache.fop.cli.Main.main(Main.java:208)
Caused by: java.lang.NumberFormatException: null
    at java.lang.Integer.parseInt(Integer.java:417)
    at java.lang.Integer.parseInt(Integer.java:499)
    at 
org.apache.fop.area.AreaTreeParser$Handler.setAreaAttributes(AreaTreeParser.java:1036)
    at 
org.apache.fop.area.AreaTreeParser$Handler.access$4000(AreaTreeParser.java:139)
    at 
org.apache.fop.area.AreaTreeParser$Handler$SpaceMaker.endElement(AreaTreeParser.java:827)
    at 
org.apache.fop.area.AreaTreeParser$Handler.endElement(AreaTreeParser.java:352)
    at 
org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1101)
    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
    at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown 
Source)
    at org.apache.xerces.xinclude.XIncludeHandler.emptyElement(Unknown Source)
    at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown 
Source)
    at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 Source)
    at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
    at 
org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)
    at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:300)
    ... 3 more


On 02/22/2013 01:17 AM, Alexios Giotis wrote:
Hi Rob,

This is the area tree, not the fop intermediate format.

Try using

fop -atin ifin.xml -pdf ifin.pdf

Alex


On 22 Feb 2013, at 02:41, Rob Sargent <rsarg...@xmission.com> wrote:

Unless of course I'm doing something silly (again).

Using fop1.1 I capture the IF from a java program to get the overall page size 
of tables. I then use that to size the region-before.

For debuging I write the IF to a file and it looks like this

<?xml version="1.0" encoding="UTF-8"?>
<areaTree version="2.0">
   <pageSequence>
     <pageViewport bounds="0 0 612000 792000" key="P1" nr="1" formatted-nr="1" 
simple-page-master-name="tables">
       <page>
         <regionViewport ipd="501624" bpd="792000" ipda="501624" bpda="792000" bap="0 0 0 0" 
is-viewport-area="true" rect="110376 0 501624 792000">
           <regionBody ipd="501624" bpd="792000" ipda="501624" bpda="792000" bap="0 0 0 0" 
is-reference-area="true" name="xsl-region-body" ctm="[1.0 0.0 0.0 1.0 110376.0 0.0]">
             <beforeFloat />
             <mainReference ipd="0" bpd="0" bap="0 0 0 0" 
is-reference-area="true">
               <span ipd="501624" bpd="366400" ipda="501624" bpda="366400" bap="0 0 0 0" 
is-reference-area="true">

Is that format correct for the fop bash script which comes with the source code?

With a local classpath I can run
fop -xml f.xml -xsl f.xsl -pdf f.pdf
Trying to print just the tables from the IF file like this
fop -ifin ifin.xml -pdf ifin.pdf
generates a zero-length ifin.pdf.

Turning on --execdebug doesn't give me any insights.  It simply show the exec'd 
command.






---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

<iftables.xml>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

Reply via email to