W3C home > Mailing lists > Public > www-xsl-fo@w3.org > March 2008

Re: initial-page-number -> adds new page (unwanted)

From: Jeremias Maerki <dev@jeremias-maerki.ch>
Date: Thu, 27 Mar 2008 17:48:30 +0100
To: www-xsl-fo@w3.org
Message-Id: <20080327174741.EC81.DEV@jeremias-maerki.ch>

This could help:
http://xmlgraphics.apache.org/fop/faq.html#blank-page-between-page-sequences

On 27.03.2008 15:59:41 jantjeBelgium wrote:
> 
> Hi there, I use Apache Fop to generate .PDF
> 
> I use this source:
>         <fo:simple-page-master master-name="abstractPage"
> page-height="297mm"
>         page-width="210mm">
>           <fo:region-body margin-left="25mm" margin-bottom="20mm"
>           margin-right="15mm" margin-top="15mm" background-color="#FFFFFF"/>
>         </fo:simple-page-master>
>         <fo:simple-page-master master-name="chapterPage" page-height="297mm"
>         page-width="210mm">
>           <fo:region-body margin-left="25mm" margin-bottom="20mm"
>           margin-right="15mm" margin-top="15mm" background-color="#FFFFFF"/>
>           <fo:region-after region-name="regionAfterChapterPage"
> extent="15mm"/>
>         </fo:simple-page-master>
> 
>         <fo:page-sequence-master master-name="pageSequenceAbstractPage">
>           <fo:repeatable-page-master-reference
> master-reference="abstractPage"/>
>         </fo:page-sequence-master>
>         <fo:page-sequence-master master-name="pageSequenceChapterPage">
>           <fo:repeatable-page-master-reference
> master-reference="chapterPage"/>
>         </fo:page-sequence-master>
> 
>       <xsl:for-each select="/documentation/abstract">
>         <fo:page-sequence master-reference="pageSequenceAbstractPage">
>           <fo:flow flow-name="xsl-region-body" font-family="Helvetica">
>             <fo:block/>
>           </fo:flow>
>         </fo:page-sequence>
>       </xsl:for-each>
>       <fo:page-sequence master-reference="pageSequenceChapterPage"
> initial-page-number="1">
>         <fo:static-content flow-name="regionAfterChapterPage">
>           <fo:block margin-right="15mm" text-align="end" font-size="3mm"
> font-family="Helvetica" font-style="italic">
>             <fo:page-number />
>           </fo:block>
>         </fo:static-content>
>         <fo:flow flow-name="xsl-region-body" font-family="Helvetica">
>           <fo:block/>
>         </fo:flow>
>       </fo:page-sequence>
> 
> OK, this works.. It generates an abstract page.. followed by the
> chapter-pages..
> 
> Now, the problem is: on using this initial-page-number="1", Fop generates an
> additional page between this abstract and chapter page.. And I don't know
> why Fop does this!!!
> 
> If i delete initial-page-number="1" there is no unwanted page generated..
> But I need this initial-page-number
> 
> Someone a solution? :-) Greetings..
> -- 
> View this message in context: http://www.nabble.com/initial-page-number--%3E-adds-new-page-%28unwanted%29-tp16325545p16325545.html
> Sent from the w3.org - www-xsl-fo mailing list archive at Nabble.com.
> 
> 




Best regards,
Jeremias Märki
_________________________________________________________
Jeremias Märki, Software-Development and Consulting
Contact Information: http://www.jeremias-maerki.ch/contact.html
Blog: http://www.jeremias-maerki.ch/blog/
Received on Thursday, 27 March 2008 16:48:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 27 March 2008 16:48:57 GMT