This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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/








To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]