[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
|
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format
RSS 2.0 |
|
Atom 0.3 |
|
|