RE: RTF - Only simple-page-masters are supported on page-sequences

2013-06-26 Thread Bonekrusher
Thanks. Logged:

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

2013-06-26 Thread Robert Meyer
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.
> >
> > 
> > http://www.w3.org/1999/XSL/Format";
> > xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";>
> > http://www.w3.org/2001/XMLSchema";
> > xmlns:fn="http://www.w3.org/2005/xpath-functions";>
> > 
> > 
> >  > odd-or-even="even"
> > master-reference="seq-page-first" blank-or-not-blank="not-blank"
> > page-position="first"/>
> >  > odd-or-even="odd"
> > master-reference="seq-page-odd" blank-or-not-blank="not-blank"/>
> > 
> > 
> >  > page-height="11in"
> > page-width="8.5in" margin-top="0.5in" margin-left="1.0in"
> > margin-right="0.5in">
> >  > margin-top="0.80in"
> > margin-bottom=".5in" overflow="auto"/>
> >  > extent="0.5in"/>
> >  > extent="0.5in"/>
> > 
> >  > page-height="11in"
> > page-width="8.5in" margin-top="0.5in" margin-left="1.0in"
> > margin-right="0.5in">
> >  > margin-top="0.35in"
> > margin-bottom=".5in" overflow="auto"/>
> >  > extent="0.5in"/>
> >  > extent="0.5in"/>
> > 
> >  > page-height="11in"
> > page-width="8.5in" margin-left="1.0in" margin-right="1.0in">
> > 
> >  > extent="11in"/>
> > 
> > 
> >  > format="1" master-reference="page-sequence" id="ps-0006">
> > 
> > data
> > 
> > 
> >  > font-size="10pt"
> > font-weight="bold" text-align="center">
> > 
> > 
> > 
> > 
> > data
> > 
> > 
> > data
> > 
> > 
> > 
> >
> >
> >
> >
> > --
> > 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

2013-06-26 Thread Chris Bowditch

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.


http://www.w3.org/1999/XSL/Format";
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";>
http://www.w3.org/2001/XMLSchema";
xmlns:fn="http://www.w3.org/2005/xpath-functions";>























data







data


data







--
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

2013-06-22 Thread Bonekrusher
Hi Robert,

Below is a small repo. Thanks for looking into this.


http://www.w3.org/1999/XSL/Format";
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";>
http://www.w3.org/2001/XMLSchema";
xmlns:fn="http://www.w3.org/2005/xpath-functions";>























data







data


data







--
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

2013-06-21 Thread Robert Meyer
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
>