OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] how to add empty pages at the end of the PDF?


Hi Bob

 > This is one way to do it:
 > [code]

Thank you very much! Works very well.

In my general driver
http://www.pinkjuice.com/howto/vimxml/xslt/docbook_sf_net_fo/general.xslt
I have

<s:template match="book">
   <s:apply-imports/>
   <s:call-template name="blankpages"/>
</s:template>

<s:template name="blankpages">
   <fo:page-sequence master-reference="blank">
     <fo:flow flow-name="blank-body">
       <fo:block break-before="page">&#xA0;</fo:block>
       <fo:block break-before="page">&#xA0;</fo:block>
       <fo:block break-before="page">&#xA0;</fo:block>
     </fo:flow>
   </fo:page-sequence>
</s:template>

and in the FOP driver
http://www.pinkjuice.com/howto/vimxml/xslt/docbook_sf_net_fo/fop-driver.xslt
I have

<s:template name="blankpages">
   <fo:page-sequence master-reference="blank">
     <fo:flow flow-name="xsl-region-body">
       <fo:block break-before="page">&#xA0;</fo:block>
       <fo:block break-before="page">&#xA0;</fo:block>
       <fo:block break-before="page">&#xA0;</fo:block>
     </fo:flow>
   </fo:page-sequence>
</s:template>

Does this make sense?

 > [...]
 > That template starts a new page-sequence using the "blank"
 > master which has no headers/footers.

Ah, that's the trick. It's a lways much nicer to use a solution instead 
of a hack :)

 > To get page breaks, an empty fo:block won't force it.

Somehow I got an additional page (numbered) for
   <fo:block break-after="page"/>
at the end, with FOP.

Thanks again,
Tobi

-- 
http://www.pinkjuice.com/









[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]