This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] how to add empty pages at the end of the PDF?
- From: Tobias Reif <tobiasreif at pinkjuice dot com>
- To: docbook-apps at lists dot oasis-open dot org
- Cc: Bob Stayton <bobs at sco dot com>
- Date: Fri, 12 Sep 2003 10:11:29 +0200
- Subject: Re: [docbook-apps] how to add empty pages at the end of the PDF?
- References: <3F60A983.70300@pinkjuice.com> <20030911134818.B18506@sco.com>
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"> </fo:block>
<fo:block break-before="page"> </fo:block>
<fo:block break-before="page"> </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"> </fo:block>
<fo:block break-before="page"> </fo:block>
<fo:block break-before="page"> </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/
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org.