Are you getting this when using Eclipse? If so, the issue is stale metadata
in Eclipse. The easiest solution is to delete the project and import it
again.

If you get this on the command line please provide an example and
information about your running environment.


On Tue, Apr 16, 2013 at 8:23 AM, javakthar <javakt...@gmail.com> wrote:

> HI
> I am having an issue converting an XML file to PDF using FOP 1.1.
>
> I get the following error when executing my code.
> “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.”
>
> There was a similar issue listed for Lotus Notes in the archives and a
> solution recommended was to overwrite the renderer. The following code was
> recommended
>
>  FOUserAgent useragent = fopFactory.newFOUserAgent();
>  PDFRenderer pdfrenderer = new PDFRenderer();
>  pdfrenderer.setUserAgent(useragent);
>  useragent.setRendererOverride(pdfrenderer);
>  fop = fopFactory.newFop(MimeConstants.MIME_PDF, useragent,out);
>
> When I include the line  PDFRenderer pdfrenderer = new PDFRenderer(); the
> following error shows up
>
> “PDF Renderer cannot be resolved to a type”. Kindly let me know what needs
> to done here.
>
> I do not see PDFRendered under org.apache.fop.render.
>
>
>
> Thanks & Regards
> =============
> Javed Akthar Khan
>
>
>
>
> --
> View this message in context:
> http://apache-fop.1065347.n5.nabble.com/FOP-PDF-Rendering-Issue-tp38316.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>
>

Reply via email to