xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pardha Paruchuri <pardha_paruch...@yahoo.com>
Subject Re: [DEBUG] Last page-sequence produced 3 pages.
Date Tue, 01 Dec 2009 23:42:05 GMT
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 <j3322ptm@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


Mime
View raw message