Re: RTF - Only simple-page-masters are supported on page-sequences
Hi, Thanks for the sample FO File. Since it appears to be a bug can you log a bug in JIRA and attach the test FO File there. Otherwise this issue may get forgotten. Thank you! Chris On 23/06/2013 00:27, Bonekrusher wrote: Hi Robert, Below is a small repo. Thanks for looking into this. ?xml version=1.0 encoding=UTF-8? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; xmlns:rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns#; fo:layout-master-set xmlns:xs=http://www.w3.org/2001/XMLSchema; xmlns:fn=http://www.w3.org/2005/xpath-functions; fo:page-sequence-master master-name=page-sequence fo:repeatable-page-master-alternatives fo:conditional-page-master-reference odd-or-even=even master-reference=seq-page-first blank-or-not-blank=not-blank page-position=first/ fo:conditional-page-master-reference odd-or-even=odd master-reference=seq-page-odd blank-or-not-blank=not-blank/ /fo:repeatable-page-master-alternatives /fo:page-sequence-master fo:simple-page-master master-name=seq-page-first page-height=11in page-width=8.5in margin-top=0.5in margin-left=1.0in margin-right=0.5in fo:region-body region-name=xsl-region-body margin-top=0.80in margin-bottom=.5in overflow=auto/ fo:region-before region-name=xsl-region-before extent=0.5in/ fo:region-after region-name=xsl-region-after extent=0.5in/ /fo:simple-page-master fo:simple-page-master master-name=seq-page-odd page-height=11in page-width=8.5in margin-top=0.5in margin-left=1.0in margin-right=0.5in fo:region-body region-name=xsl-region-body margin-top=0.35in margin-bottom=.5in overflow=auto/ fo:region-before region-name=xsl-region-before extent=0.5in/ fo:region-after region-name=xsl-region-after extent=0.5in/ /fo:simple-page-master fo:simple-page-master master-name=alternate-blank page-height=11in page-width=8.5in margin-left=1.0in margin-right=1.0in fo:region-body/ fo:region-before region-name=header-blank extent=11in/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence initial-page-number=1 force-page-count=end-on-even format=1 master-reference=page-sequence id=ps-0006 fo:static-content flow-name=xsl-region-before fo:blockdata/fo:block /fo:static-content fo:static-content flow-name=header-blank fo:block line-height=12pt font-family=Arial font-size=10pt font-weight=bold text-align=center /fo:block /fo:static-content fo:static-content flow-name=xsl-region-after fo:blockdata/fo:block /fo:static-content fo:flow flow-name=xsl-region-body fo:blockdata/fo:block /fo:flow /fo:page-sequence /fo:root -- View this message in context: http://apache-fop.1065347.n5.nabble.com/RTF-Only-simple-page-masters-are-supported-on-page-sequences-tp38734p38793.html Sent from the FOP - Users mailing list archive at Nabble.com. - 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
RE: RTF - Only simple-page-masters are supported on page-sequences
Hi, Sorry, I have been meaning to have a look at this but I am a bit busy at the moment. As Chris has said, if you log a bug I'll take a look the next chance I get. Thanks, Robert Meyer Date: Wed, 26 Jun 2013 15:52:03 +0100 From: bowditch_ch...@hotmail.com To: fop-users@xmlgraphics.apache.org Subject: Re: RTF - Only simple-page-masters are supported on page-sequences Hi, Thanks for the sample FO File. Since it appears to be a bug can you log a bug in JIRA and attach the test FO File there. Otherwise this issue may get forgotten. Thank you! Chris On 23/06/2013 00:27, Bonekrusher wrote: Hi Robert, Below is a small repo. Thanks for looking into this. ?xml version=1.0 encoding=UTF-8? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; xmlns:rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns#; fo:layout-master-set xmlns:xs=http://www.w3.org/2001/XMLSchema; xmlns:fn=http://www.w3.org/2005/xpath-functions; fo:page-sequence-master master-name=page-sequence fo:repeatable-page-master-alternatives fo:conditional-page-master-reference odd-or-even=even master-reference=seq-page-first blank-or-not-blank=not-blank page-position=first/ fo:conditional-page-master-reference odd-or-even=odd master-reference=seq-page-odd blank-or-not-blank=not-blank/ /fo:repeatable-page-master-alternatives /fo:page-sequence-master fo:simple-page-master master-name=seq-page-first page-height=11in page-width=8.5in margin-top=0.5in margin-left=1.0in margin-right=0.5in fo:region-body region-name=xsl-region-body margin-top=0.80in margin-bottom=.5in overflow=auto/ fo:region-before region-name=xsl-region-before extent=0.5in/ fo:region-after region-name=xsl-region-after extent=0.5in/ /fo:simple-page-master fo:simple-page-master master-name=seq-page-odd page-height=11in page-width=8.5in margin-top=0.5in margin-left=1.0in margin-right=0.5in fo:region-body region-name=xsl-region-body margin-top=0.35in margin-bottom=.5in overflow=auto/ fo:region-before region-name=xsl-region-before extent=0.5in/ fo:region-after region-name=xsl-region-after extent=0.5in/ /fo:simple-page-master fo:simple-page-master master-name=alternate-blank page-height=11in page-width=8.5in margin-left=1.0in margin-right=1.0in fo:region-body/ fo:region-before region-name=header-blank extent=11in/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence initial-page-number=1 force-page-count=end-on-even format=1 master-reference=page-sequence id=ps-0006 fo:static-content flow-name=xsl-region-before fo:blockdata/fo:block /fo:static-content fo:static-content flow-name=header-blank fo:block line-height=12pt font-family=Arial font-size=10pt font-weight=bold text-align=center /fo:block /fo:static-content fo:static-content flow-name=xsl-region-after fo:blockdata/fo:block /fo:static-content fo:flow flow-name=xsl-region-body fo:blockdata/fo:block /fo:flow /fo:page-sequence /fo:root -- View this message in context: http://apache-fop.1065347.n5.nabble.com/RTF-Only-simple-page-masters-are-supported-on-page-sequences-tp38734p38793.html Sent from the FOP - Users mailing list archive at Nabble.com. - 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
RE: RTF - Only simple-page-masters are supported on page-sequences
Thanks. Logged: https://issues.apache.org/jira/browse/FOP-2270 https://issues.apache.org/jira/browse/FOP-2270 -- View this message in context: http://apache-fop.1065347.n5.nabble.com/RTF-Only-simple-page-masters-are-supported-on-page-sequences-tp38734p38808.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
RE: RTF - Only simple-page-masters are supported on page-sequences
Hi Robert, Below is a small repo. Thanks for looking into this. ?xml version=1.0 encoding=UTF-8? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; xmlns:rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns#; fo:layout-master-set xmlns:xs=http://www.w3.org/2001/XMLSchema; xmlns:fn=http://www.w3.org/2005/xpath-functions; fo:page-sequence-master master-name=page-sequence fo:repeatable-page-master-alternatives fo:conditional-page-master-reference odd-or-even=even master-reference=seq-page-first blank-or-not-blank=not-blank page-position=first/ fo:conditional-page-master-reference odd-or-even=odd master-reference=seq-page-odd blank-or-not-blank=not-blank/ /fo:repeatable-page-master-alternatives /fo:page-sequence-master fo:simple-page-master master-name=seq-page-first page-height=11in page-width=8.5in margin-top=0.5in margin-left=1.0in margin-right=0.5in fo:region-body region-name=xsl-region-body margin-top=0.80in margin-bottom=.5in overflow=auto/ fo:region-before region-name=xsl-region-before extent=0.5in/ fo:region-after region-name=xsl-region-after extent=0.5in/ /fo:simple-page-master fo:simple-page-master master-name=seq-page-odd page-height=11in page-width=8.5in margin-top=0.5in margin-left=1.0in margin-right=0.5in fo:region-body region-name=xsl-region-body margin-top=0.35in margin-bottom=.5in overflow=auto/ fo:region-before region-name=xsl-region-before extent=0.5in/ fo:region-after region-name=xsl-region-after extent=0.5in/ /fo:simple-page-master fo:simple-page-master master-name=alternate-blank page-height=11in page-width=8.5in margin-left=1.0in margin-right=1.0in fo:region-body/ fo:region-before region-name=header-blank extent=11in/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence initial-page-number=1 force-page-count=end-on-even format=1 master-reference=page-sequence id=ps-0006 fo:static-content flow-name=xsl-region-before fo:blockdata/fo:block /fo:static-content fo:static-content flow-name=header-blank fo:block line-height=12pt font-family=Arial font-size=10pt font-weight=bold text-align=center /fo:block /fo:static-content fo:static-content flow-name=xsl-region-after fo:blockdata/fo:block /fo:static-content fo:flow flow-name=xsl-region-body fo:blockdata/fo:block /fo:flow /fo:page-sequence /fo:root -- View this message in context: http://apache-fop.1065347.n5.nabble.com/RTF-Only-simple-page-masters-are-supported-on-page-sequences-tp38734p38793.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
RE: RTF - Only simple-page-masters are supported on page-sequences
Hi, The line causing the error dates back from 2008 according to git blame. It can be seen in the RTFHandler.java class on line 217: this.pagemaster = pageSeq.getRoot().getLayoutMasterSet().getSimplePageMaster(reference); if (this.pagemaster == null) { RTFEventProducer eventProducer = RTFEventProducer.Provider.get( getUserAgent().getEventBroadcaster()); eventProducer.onlySPMSupported(this, reference, pageSeq.getLocator()); ... } It looks as though for some reason it's not reading the simple-page-master correctly and is therefore null. Would it be possible for you to provide us with a shortened example to reproduce the issue? You can blank out any sensitive data in the FO if there is any. Thanks, Robert Meyer Date: Wed, 19 Jun 2013 03:15:44 -0700 From: djs...@yahoo.com To: fop-users@xmlgraphics.apache.org Subject: RTF - Only simple-page-masters are supported on page-sequences Hi, I had a customer yesterday request a RTF version of a document rather than a PDF. When I ran my FO through the Latest nightly trunk snapshot, I received this error. Only simple-page-masters are supported on page-sequences. Using default simple-page-master from page-sequence-master warning-recto-verso-document. (See position 1402:42) Exception org.apache.fop.apps.FOPException java.lang.NullPointerException I know this use to work in older version of FOP. Is this a bug or was this disabled? Thanks Phil -- View this message in context: http://apache-fop.1065347.n5.nabble.com/RTF-Only-simple-page-masters-are-supported-on-page-sequences-tp38734.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
RTF - Only simple-page-masters are supported on page-sequences
Hi, I had a customer yesterday request a RTF version of a document rather than a PDF. When I ran my FO through the Latest nightly trunk snapshot, I received this error. Only simple-page-masters are supported on page-sequences. Using default simple-page-master from page-sequence-master warning-recto-verso-document. (See position 1402:42) Exception org.apache.fop.apps.FOPException java.lang.NullPointerException I know this use to work in older version of FOP. Is this a bug or was this disabled? Thanks Phil -- View this message in context: http://apache-fop.1065347.n5.nabble.com/RTF-Only-simple-page-masters-are-supported-on-page-sequences-tp38734.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org