Hi Erik,
Yes, I have a Idea...
externaly from FOP:
You redirect stdout from FOP and use the last opening bracket "[" and the
following number as pagenumber.
within FOP:
You write your own class derived from PageSequence or
PageNumberGenerator and write the last pagenumber (may be in the destructor)
directly to your database or to a file.
Regards,
Enrico
Am Sonntag, 29. Juli 2001 20:45 schrieben Sie:
> Hi Enrico,
>
> this is a way to use the page number within the same transformation
> process, but I need to have the page count in my application to write it in
> a database table and to use it in a different transformation as starting
> page.
>
> Any idea?
>
> Regards,
> ____________________________
> Erik Rehrmann
> IOn AG - [EMAIL PROTECTED]
>
>
> -----Ursprüngliche Nachricht-----
> Von: Enrico Schnepel [mailto:[EMAIL PROTECTED]]
> Gesendet: Sonntag, 29. Juli 2001 20:37
> An: [EMAIL PROTECTED]
> Betreff: Re: Getting number of rendered pages
>
>
> Hi Erik
>
> I am writing a
>
> <fo:block keep-with-previous="always" id="LastPage"
> font-size="1pt"></fo:block>
>
> before </fo:flow> and display the page number with
>
> Page <fo:page-number/> of <fo:page-number-citation ref-id="LastPage"/>
>
> within my region-before or region-after. This should result in
>
> Page 1 of 3
>
> I don't know wether this is the recomended way of getting the last page
> number but it's working fine.
>
> Regards
> Enrico
>
> Am Sonntag, 29. Juli 2001 18:10 schrieben Sie:
> > Hi all,
> >
> > does anybody know if it's possible to get the number of rendered
> > pages? I searched the docs, but couldn't find anything about it.
> >
> > I think it should be possible, because the PDFRenderer prints the
> > current page number to the message system.
> >
> > We have to print a book divided into several chapters and every
> > chapter has to be rendered separately, but must begin with the right
> > page number (information of every chapter is in a database table to
> > keep track of chapter sequence and page numbering).
> >
> > Any help is greatly appreciated.
> >
> > ____________________________
> > Erik Rehrmann
> > IOn AG - [EMAIL PROTECTED]
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]