On Oct 19, 2006, at 16:10, [EMAIL PROTECTED] wrote:

Hi,


Now I implemented the UserAgent + Renderer correct, but now it seems that the
SAX Parser can't figure out the correct FOEventHandler.

Is there any way like the Renderer to configure a EventHandler?

My code at the moment is:

        File pdffile = new File(pdfname);
        out = new FileOutputStream(pdffile);
        FOUserAgent useragent = fopFactory.newFOUserAgent();
        PDFRenderer pdfrenderer = new PDFRenderer();
        pdfrenderer.setUserAgent(useragent);

        RTFHandler handler = new RTFHandler(useragent, out);

Errrm... Something's not right here. Are you trying to render to PDF or to RTF? Using the PDFRenderer with the RTFHandler is not an option, I'm afraid. :/ (For PDF you would need an AreaTreeHandler, for RTF you'd need an RTFRenderer)


Cheers,

Andreas


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

Reply via email to