Hi,

as far as I understand, there has been a change in the public API because of
Mark's patch, so the old method doesn't work anymore.

You can see the new code in examples/embedding. It works fine for me.
or more info:
http://xml.apache.org/fop/embedding.html


BTW: the html-docs included in the FOP_0_20 distribution are for FOP 0.18
???

Peter
------------------------
Peter Jacobs
Freelance multimedia programmeur
De Budetstraat 8
B-3201 Aarschot
[EMAIL PROTECTED]
016/573257


> -----Original Message-----
> From: Michel Lehon [mailto:[EMAIL PROTECTED]]
> Sent: maandag 13 augustus 2001 15:24
> To: [EMAIL PROTECTED]
> Subject: Problem with FOP 0.20.0 when using the ContentHandler to feed
> SAX events...
>
>
> Hi,
>
> I just upgraded our program to use FOP 0.20.0
> We embedded FOP and used the old official method to call it.
>
> I mean using somthing like this :
>         Driver driver = new Driver();
>         driver.setRenderer(Driver.RENDER_PDF);
>         ByteArrayOutputStream out = new ByteArrayOutputStream();
>         driver.setOutputStream(out);
>
>         ContentHandler cnth = driver.getContentHandler();
>         sendSAXEvents(cnth);
>
>         driver.format();
>         driver.render();
>
>         byte[] content = out.toByteArray();
>
> However this not longer works with 0.20.0
> for a few reasons:
> 1°) there is no driver.format() method.
> 2°) there is no driver.render() method (there are two version with
> parameters).
>
>


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

Reply via email to