Skipping page numbers on cover sheets
Hi, I want to add a front cover sheet to a document. The document is two-sided, consisting of multiple chapters (each being a page-sequence) with the page number in the header. My problem, is that when I add the cover, it is treated as pages one and two (I want the first 'real' page to start on the right, so I insert a blank page after the cover). This means that the first chapter starts at page 3, when I want it to start at page 1. Is there a way to force the first chapter to be page 1? I've tried setting initial-page-number=-1 for the front cover, but that didn't work (I'm not that surprised). I can't think of a way of setting the first chapter to start on page one, without either all chapters starting on page 1, or duplicating the page-sequence definition for each chapter type for the situation where it's the first chapter - since the initial-page-number is an attribute to fo:page-sequence, I can't stick it into an if. My template is here: http://yagsbook.svn.sourceforge.net/viewvc/yagsbook/trunk/xml/xslt/pdf/yagsbook.xsl?revision=78view=markup I add the cover at line 349, I match each chapter at line 399. -- Be seeing you,Games: http://www.glendale.org.uk/ Sam. Posts: http://www.google.com/profiles/samuel.penn
FOP Trunk - . No ImagePreloader found
Hi, I am using trunk to render a pdf and receive the following error: image not available. URI: file:C:/sandbox/A-02-1.png. Reason: org.apache.xmlgraphics.image.loader.ImageException: The file format is not supported. No ImagePreloader found for file:C:/sandbox/A-02-1.png (See position 7109:180) org.apache.xmlgraphics.image.loader.ImageException: The file format is not supported. No ImagePreloader found for file: C:/sandbox/A-02-1.png It should be noted that in order to compile the trunk, I have to compile the latest version of xmlgraphics trunk. Perhaps I am missing a reference or conf setting. Any ideas as to why this is happening? Thx Phil -- View this message in context: http://apache-fop.1065347.n5.nabble.com/FOP-Trunk-No-ImagePreloader-found-tp37038.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: Skipping page numbers on cover sheets
On Saturday 13 October 2012 10:45:32 Bonekrusher wrote: Hi, Simply put your cover in its own page-sequence. Your chapter page-sequence should then be set to initial-page-number=1. That's what I'm doing at the moment. However, each chapter has it's own page-sequence (there are different formats for chapters, depending on whether it's two column or single column layout for that chapter). I need only the first chapter to have initial-page-number=1. Can page sequences be nested? Or can I change the format of pages without starting a new page sequence? -- Be seeing you,Games: http://www.glendale.org.uk/ Sam. Posts: http://www.google.com/profiles/samuel.penn
Re: Skipping page numbers on cover sheets
Hi Samuel, Its difficult to see what your xslt is outputting to FO without an input file. You should provide a small FO file that demonstrates the issue your having. If you post an FO file, I'll gladly take a look. -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Skipping-page-numbers-on-cover-sheets-tp37037p37041.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: Skipping page numbers on cover sheets
If I understand what you are saying, for every chapter you use a new page-sequence. Then, all you have to do is set initial-page-number=1in the first chapter, and set initial-page-number=auto in the remaining chapters. On 10/13/12 11:28 PM, Samuel Penn wrote: On Saturday 13 October 2012 10:45:32 Bonekrusher wrote: Hi, Simply put your cover in its own page-sequence. Your chapter page-sequence should then be set to initial-page-number=1. That's what I'm doing at the moment. However, each chapter has it's own page-sequence (there are different formats for chapters, depending on whether it's two column or single column layout for that chapter). I need only the first chapter to have initial-page-number=1. Can page sequences be nested? Or can I change the format of pages without starting a new page sequence? -- Be seeing you, Games: http://www.glendale.org.uk/ Sam. Posts: http://www.google.com/profiles/samuel.penn
Re: FOP Trunk - . No ImagePreloader found
Solved - I was missing the JAI files. -- View this message in context: http://apache-fop.1065347.n5.nabble.com/FOP-Trunk-No-ImagePreloader-found-tp37038p37043.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