You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Pardha Paruchuri <pa...@yahoo.com> on 2009/12/02 00:42:05 UTC
Re: [DEBUG] Last page-sequence produced 3 pages.
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. 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:blockfont-family="TimesNewRoman"font-size="12pt"language="EN-US">
- <fo:inline>
<fo:leader leader-length="0pt"/>
Page 1
</fo:inline>
</fo:block>
- <fo:blockfont-family="TimesNewRoman"font-size="12pt"language="EN-US">
- <fo:inline>
<fo:block break-before="page"/>
</fo:inline>
</fo:block>
- <fo:blockfont-family="TimesNewRoman"font-size="12pt"language="EN-US">
- <fo:inline>
<fo:leader leader-length="0pt"/>
Page 2
</fo:inline>
</fo:block>
- <fo:blockfont-family="TimesNewRoman"font-size="12pt"language="EN-US">
- <fo:inline>
<fo:block break-before="page"/>
</fo:inline>
</fo:block>
- <fo:blockfont-family="TimesNewRoman"font-size="12pt"language="EN-US">
- <fo:inline>
<fo:leader leader-length="0pt"/>
Page 3
</fo:inline>
</fo:block>
</fo:block>
----- Original Message ----
From: J.Pietschmann <j3...@yahoo.de>
To: fop-users@xmlgraphics.apache.org
Sent: Wed, November 25, 2009 5:13:27 PM
Subject: Re: [DEBUG] Last page-sequence produced 3 pages.
On 25.11.2009 20:56, Pardha Paruchuri wrote:
> I have a WordML file that I am trying to convert into PDF using FOP 0.20.5, is giving below error.
...
> Caused by: java.lang.ClassCastException
For FOP 0.20.5, this usually indicates a violation of the XSLFO schema; a common
case is producing inline FO elements or text as direct child of a flow.
There isn't much more to say without having a look at your inputs. You
can try to run your XML/XSLT through FOP 0.95, which should give you
an informative error message rather than a JAva exception. Switching
to 0.95 is recommended anyway.
> when I ran in debug mode it is showing this message '[DEBUG] Last page-sequence produced 3 pages'.
That's just an information, no error.
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: [DEBUG] Last page-sequence produced 3 pages.
Posted by Pascal Sancho <pa...@takoma.fr>.
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: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org