[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Page numbering

Subject: Re: Page numbering
From: Eike Jordan <jordan@xxxxxxxxxxxxx>
Date: Fri, 25 May 2007 16:11:56 +0200
Re:  Page numbering
Andy Carr1 wrote:
Hi, I need some help

I use xsl-fo to transform document xml (stored in a repository) into PDF.

However prior to printing the document I need to create a cover sheet(s) which could run to several pages.

My intention is to use xsl-fo to create this cover sheet, which must contain the number of pages (document + cover-sheet(s) ).

Does anyone know how I could calculate the number of pages in the repository stored document "on the fly" as the cover sheet needs to contain this information.

The process flow is something like

1. Search Repository
2. Find Document
3. Right click -> print request
4. Create cover-sheet PDF (containing number of pages)
5. Send cover-sheet and document to printer as PDF.


AFAIK it is not possible to calculate the number of pages without generating the complete PDF. But perhaps iText [1][2] might be useful for your purposes. With iText your process pipeline may look like this 1. Search Repository 2. Find Document 3. Right click -> print request 4a. Create PDF 4b. Create cover-sheet PDF width iText (containing number of pages) 5. Send cover-sheet and document to printer as PDF.

Regard, EJ

[1] http://www.lowagie.com/iText/
[2] http://www.manning.com/lowagie/

--
Eike Jordan  <jordan@xxxxxxxxxxxxx>

| FIZ CHEMIE BERLIN
| Franklin Str. 11               ------    ,__o
| 10587 Berlin                  ------   _-\_<,
|                              ------   (+)/'(+)
| Tel. : 0049-30-39977 214

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.