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



This e-mail contains Privileged and Confidential Information intended solely 
for the use of the addressee(s). It shall not attach any liability on the
sender or Collabera or its affiliates. Any views or opinions presented in this 
email are solely those of the sender and may not necessarily reflect the
opinions of Collabera or its affiliates. If you are not the intended recipient, 
you should not disseminate, distribute or copy this e-mail. Please notify
the sender immediately and destroy all copies of this message and any 
attachments.

WARNING: Computer viruses can be transmitted via email. While Collabera has 
taken reasonable precautions to minimize this risk, Collabera accepts no
liability for any damage that may be caused to you in the event that there is 
any virus in this e-mail or any attachments attached hereto. It is the
addresses(s) duty to check and scan this email and any attachments attached 
hereto for the presence of viruses prior to opening the email.
** Thank You **

Reply via email to