[xep-support] Content dependent on recto/verso?

Jirka Kosek jirka at kosek.cz
Wed Mar 14 12:11:41 PDT 2007


Dovid Zalkin wrote:

> Hi. I need to produce a PDF where each chapter has to end on an even
> page. If the last page of the chapter's content falls on an even page,
> fine. If not, rather than leaving the page blank, my client wants the
> page to consist of underscores, for recording notes, etc., in the
> printed version of the PDF.

This simplest way to achieve this is to force even number of pages for
page-sequence corresponding to chapter by using:

<fo:page-sequence master-reference="foo" force-page-count="even">

And then in page-sequence-master for "foo" provide page-master for blank
page which is generated when chapter has odd number of pages:

...
<fo:conditional-page-master-reference master-reference="notes"
                                      blank-or-not-blank="blank"/>

Of course page master "notes" would not be blank. It can have header
that extends over whole page and you can place lines for notes as a
static-content onto this page.

HTH,

				Jirka

-- 
------------------------------------------------------------------
  Jirka Kosek      e-mail: jirka at kosek.cz      http://xmlguru.cz
------------------------------------------------------------------
       Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
 OASIS DocBook TC member, W3C Invited Expert, ISO/JTC1/SC34 member
------------------------------------------------------------------
 Want to speak at XML Prague 2007 => http://xmlprague.cz/cfp.html

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
URL: <http://lists.renderx.com/pipermail/xep-support/attachments/20070314/07feb60b/attachment.bin>


More information about the Xep-support mailing list