Hello,
yes it's totaly wrong what I tried there, yesterday!
I want to generate a PDF so I need the AreaTreeHandler - no RTF.
My problem is that lotus notes can't read propertie files, those textfiles that
get the maker classes and resolve a renderer / handler to the mime-type.
What I'm trieing is to set the renderer and handler manually, so that the propertie files aren't
needed anymore. I thought I could do this by using a FOUserAgent to set it, but this
also failed with the same exception.
I always receive the error-message:
java.lang.UnsupportedOperationException: Don't know how to handle "application/pdf" as an output format. Neither an FOEventHandler, nor
a Renderer could be found for this output format.
I thought, when I set the renderer, the RendererFactory.class in line 222 takes the overriden
renderer instead of resolving it dynamicly - is that correct? - How about the handler?
The error I mentioned in the Thread on Thu, 19 Oct 2006 14:10:07 GMT was another fault and I solved it.
-> Is there any way that the renderer/handler is determined like in 0.20.5 - withought properties files? 0.20.5 works perfectly in notes agents!
Thanks for your help and patience.
Best regards,
Tobias
Andreas L Delmelle <[EMAIL PROTECTED]> wrote on 19.10.2006 18:56:54:
> 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]
>
- Re: Problem PDF Renderer could not be found Tobias . Soloschenko
- Re: Problem PDF Renderer could not be found Tobias . Soloschenko
