Subject: Re: [xsl] Page numbering|
From: Eike Jordan <jordan@xxxxxxxxxxxxx>
Date: Fri, 25 May 2007 16:11:56 +0200
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  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.
-- Eike Jordan <jordan@xxxxxxxxxxxxx>
| FIZ CHEMIE BERLIN | Franklin Str. 11 ------ ,__o | 10587 Berlin ------ _-\_<, | ------ (+)/'(+) | Tel. : 0049-30-39977 214