FOP : PDF Rendering Issue

2013-04-16 Thread javakthar
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



Re: FOP : PDF Rendering Issue

2013-04-16 Thread Luis Bernardo
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




Re: FOP : PDF Rendering Issue

2013-04-16 Thread javakthar
Hi

I am getting this issue on Lotus Notes. I am not sure the steps what you
have mentioned is possible in Lotus Notes.

But is the class 'PDFRenderer' available in FOP 1.1 or has it been replaced
with any other class.

Regards
Javed Khan



--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/FOP-PDF-Rendering-Issue-tp38316p38319.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



FOP : PDF Rendering Issue

2013-04-16 Thread Javed Akthar Khan
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 **