Re: break-after problem

On Mon, Dec 13 2010 14:06:39 +0000, pjcarvalho@gmail.com wrote:
> I am having a problem using FOP (I am using FOP 0.95 - I also tried with FOP
> 1.0 with the same result): I want to generate a PDF document and add a blank
> page in the end of that document in the case it has an odd number of pages:
>          - if the document has a even number of pages, no blank page is added
> (for example if the generated PDF document has 4 pages, nothing more is made)
>          - if the document has an odd number of pages, a blank page is added in
> the end of the document (for example, if the document is generated with 3
> pages, a blank page i added to the document so it will have 4 pages)

Use 'force-page-count="end-on-even"' [1] with your fo:page-sequence [2].

Regards,


Tony Graham                         Tony.Graham@MenteithConsulting.com
Director                                  W3C XSL FO SG Invited Expert
Menteith Consulting Ltd                               XML Guild member
XML, XSL and XSLT consulting, programming and training
Registered Office: 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
Registered in Ireland - No. 428599   http://www.menteithconsulting.com
  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
xmlroff XSL Formatter                               http://xmlroff.org
xslide Emacs mode                  http://www.menteith.com/wiki/xslide
Unicode: A Primer                               urn:isbn:0-7645-4625-2

[1] http://www.w3.org/TR/xsl11/#force-page-count
[2] http://www.w3.org/TR/xsl11/#fo_page-sequence

Received on Monday, 13 December 2010 15:18:56 UTC