Java Mailing List Archive

Home » fop-users-digest.xmlgraphics »

fop-users Digest 28 Jan 2013 10:59:49 -0000 Issue 2641



Author LoginPost Reply

fop-users Digest 28 Jan 2013 10:59:49 -0000 Issue 2641

Topics (messages 36206 through 36207)

RTF is failing
 36206 by:
 36207 by: Robert Meyer


To post to the list, e-mail: fop-users@(protected)
To unsubscribe, e-mail: fop-users-digest-unsubscribe@(protected)
For additional commands, e-mail: fop-users-digest-help@(protected)


Attachment: fop-users_36206.eml (zipped)



I just tried to generate a RTF using a very simple
FO-File, but I got this


at org.apache.fop.render.rtf.RTFHandler.startPageSequence(
at org.apache.xalan.transformer.TransformerIdentityImpl.startElement(
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.xinclude.XIncludeHandler.startElement(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(
at org.apache.fop.cli.InputHandler.transformTo(
at org.apache.fop.cli.InputHandler.renderTo(
at org.apache.fop.cli.Main.startFOP(
at org.apache.fop.cli.Main.main(


Do I have to do some more then setting the MineType to RTF?

Best Regards



Attachment: fop-users_36207.eml (zipped)

I tried to reproduce and found I was getting the following message before getting a nullpointer:

"Only simple-page-masters are supported on page-sequences. Using default simple-page-master from page-sequence-master "presentation". (See position 19:76)"

This is because for some reason it didn't like that I was using a page sequence master  e.g.

<fo:simple-page-master master-name="test .../>
<fo:page-sequence-master master-name="testsequence">
  <fo:single-page-master-reference master-reference="test" />
<fo:page-sequence master-reference="testsequence" ...>

If I removed the page sequence from my FO to go into the RTF and instead did the following it worked fine:

<fo:simple-page-master master-name="test .../>
<fo:page-sequence master-reference="test" ...>

At the moment I am not sure if this is a limitation, but it seems a bit odd that it cannot use simple page sequences so it warrants further investigation. There is a bug related to the same line in Jira found here:

If you think your issue is not related to the page sequence master, it would help if you could post the example FO you are using.

I will investigate more when I get the chance.

Best Regards,

Robert Meyer
©2008 - Jax Systems, LLC, U.S.A.