Re: [xsl] Append multi-page PDF to end of XSL-FO Output

Subject: Re: [xsl] Append multi-page PDF to end of XSL-FO Output
From: Jirka Kosek <jirka@xxxxxxxx>
Date: Mon, 10 Nov 2008 17:23:46 +0100
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mark Shellenberger wrote:
> I've been appending a single page PDF as the final page of an XSL-FO output.
> Now I need to append multiple pages (from a single file) to the end of the
> XSL-FO output.

Such task is best handled by some PDF processing library like iText --
http://www.lowagie.com/iText/

You can either use iText to postprocess PDF rendering of XSL-FO and
append another PDF at the end of it

Or you can use iText to extract pages from PDF file into separate files
and then use fo:external-graphics to include those pages one by one into
XSL-FO. (Actually if you use Java based XSLT processor you can even call
iText directly from XSLT transformation.)

- --
- ------------------------------------------------------------------
  Jirka Kosek      e-mail: jirka@xxxxxxxx      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
- ------------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJGGASzwmSw7n0dR4RAkleAJ9IUEd2XAleTMThmQuf8QJ1ru3bHwCggpFP
HUmT0ru1OAp+QoH4XSVwtz0=
=HhzS
-----END PGP SIGNATURE-----

Current Thread