- From: Paulo Carvalho <pjcarvalho@gmail.com>
- Date: Mon, 13 Dec 2010 16:29:07 +0100
- To: Tony.Graham@MenteithConsulting.com, www-xsl-fo@w3.org
- Message-ID: <AANLkTinv1Xkj-=BumVXvaJasFy9URhYzKg=+zqB2=Qbj@mail.gmail.com>
Hello Thanks for your answer. Yes, I know that I can use "force-page-count='end-on-odd'". The problem is that (i did not explain on the first message to simplify it), the FO used is generated by Altova Stylevision. It is Altova Stylevision who puts the code: <fo:block break-after="odd-page" margin="0pt" space-before="6pt" space-after="6pt"> <fo:inline> <xsl:text>abcdef</xsl:text> </fo:inline> </fo:block> I tried to find a way on StyleVision to put "force-page-count='end-on-odd'" on the fo:page-sequence XML tag but I could not find anyway to do so... And with the break-after="odd-page" option, it does not seems to work properly. Any idea how I can solve this problem? Thank you Regards Paulo >On Mon, Dec 13 2010 14:06:39 +0000, pjcarvalho@gmail.com <pjcarvalho@gmail.com?Subject=Re%3A%20break-after%20problem&In-Reply-To=%253C877hfdpupq.fsf%40takai.menteithconsulting.com%253E&References=%253C877hfdpupq.fsf%40takai.menteithconsulting.com%253E> 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 <Tony.Graham@MenteithConsulting.com?Subject=Re%3A%20break-after%20problem&In-Reply-To=%253C877hfdpupq.fsf%40takai.menteithconsulting.com%253E&References=%253C877hfdpupq.fsf%40takai.menteithconsulting.com%253E> > 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 -- Paulo Carvalho 1 rue du Chateau 57710 Aumetz France http://forum-informatico.forumeiros.com/index.htm http://ummundoecologico.blogspot.com
Received on Monday, 13 December 2010 15:29:40 UTC