Thanks Pascal. I made a change to the stylesheet to take care of the pagebreak
issue. I am getting another error for a barcode font that I already included in
the fop.xconf file. Please advise.
WARNING: Skipping malformed value for font-family: KeithDimmock's3of9Barcode in
"KeithDimmock's3of9Barcode".
Dec 7, 2009 2:40:42 PM org.apache.fop.cli.Main startFOP
SEVERE: Exception
java.lang.IllegalArgumentException: Specify at least one font family
at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:217)
at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:125)
at org.apache.fop.cli.Main.startFOP(Main.java:166)
at org.apache.fop.cli.Main.main(Main.java:197)
---------
java.lang.IllegalArgumentException: Specify at least one font family
at org.apache.fop.fonts.FontInfo.fontLookup(FontInfo.java:336)
at org.apache.fop.fo.properties.CommonFont.getFontState(CommonFont.java:
323)
at org.apache.fop.layoutmgr.BlockLayoutManager.initialize(BlockLayoutMan
ager.java:85)
---------------
here is the font section from the FO file.
<fo:block font-family="KeithDimmock's3of9Barcode" font-size="72pt"
language="EN-US">
−
<fo:inline font-family="KeithDimmock's3of9Barcode" font-size="72pt">
<fo:leader leader-length="0pt"/>
*
</fo:inline>
−
<fo:inline font-family="KeithDimmock's3of9Barcode" font-size="72pt">
<fo:leader leader-length="0pt"/>
123456789
</fo:inline>
−
<fo:inline font-family="KeithDimmock's3of9Barcode" font-size="72pt">
<fo:leader leader-length="0pt"/>
*
</fo:inline>
</fo:block>
----- Original Message ----
From: Pascal Sancho <[email protected]>
To: "[email protected]" <[email protected]>
Sent: Wed, December 2, 2009 3:24:16 AM
Subject: Re: [DEBUG] Last page-sequence produced 3 pages.
Hi,
Pardha Paruchuri a écrit :
> I tried running a WordML file through the new install 0.95 and it is throwing
> errors for a custom font though I added it to the fop.xconf, for invalid
> property: leader-length="NaNpt" and ignoring page breaks.
"NaN" means "Not a Number", witch is most probably thrown by XSLT.
You should debug your XSLT to find where this occurs.
> so I created a simple Word file just to test the page break issue but it did
> not put page breaks in Pdf. here is a snippet from a simple fo file that has
> 2 page breaks.
>
>
> - <fo:inline>
> <fo:block break-before="page"/>
> </fo:inline>
This is a curious construction.
fo:inline surrounding a page break.
Since there is yet an error with fo:leader, the rest of the XSL-FO may
not be handled correctly, but you can remove this fo:inline.
HTH,
Pascal
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]