Hi Jeremias,

THAT's exactly what I was searching for! But unfortunatetly, the Driver.format() in 
the current cvs versions looks like

    /**
     * format the formatting object tree into an area tree
     */
    public synchronized void format()
        throws FOPException {
        FontInfo fontInfo = new FontInfo();
        _renderer.setupFontInfo(fontInfo);

        _areaTree = new AreaTree();
        _areaTree.setFontInfo(fontInfo);

        _treeBuilder.format(_areaTree);
    }

The javadoc confirms this!

Do you mean an other class/method ?

____________________________
Erik Rehrmann
IOn AG - [EMAIL PROTECTED]


-----Ursprüngliche Nachricht-----
Von: Jeremias Maerki [mailto:[EMAIL PROTECTED]] 
Gesendet: Montag, 30. Juli 2001 11:51
An: [EMAIL PROTECTED]
Betreff: Re: Getting number of rendered pages


> 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.

Driver.format() returns the number of generated pages as an integer.

Jeremias Märki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Fon +41 (41) 317 2020 - Fax +41 (41) 317 2029
Internet http://www.outline.ch


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to