This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Dec 13, 2011, 11:50 AM
37 Posts

what's the best way to generate PDF in this scenario?

  • Category: Other
  • Platform: All
  • Release: 8.5.3
  • Role: Developer
  • Tags: itext,fop,html,rich text
  • Replies: 1
In this days I have analyze for my project the best solution for create PDF file.
 
In my project I have different Xpages (9 Xpages at this moment) and I would create an engine based on template (XML, PDF an so on..) that convert every Xpages to PDF document (with Header, Footer, Pager and so on )
 
In every Xpages I have different type of field (radio, text, check) and always RichText Field (ckeditor)
 
My first step was Itext solution (I see  this custom control ):
 
But seem that Itext don't work well with AcroField RichText (there are only this API for write  ....richtextl)
 
So that Now I think that the best solution is the FOP FOP Project but I don't know how use it in Xpages.
 
For you what's the best solution in Xpages  to create PDF with content HTML?
 
 
Dec 13, 2011, 12:10 PM
261 Posts
Re: what's the best way to generate PDF in this scenario?
Daniele,
 
In a recent project I"ve been using wkhtmltopdf to generate PDF files. It can convert HTML files to PDF using a simple command line interface. I think it can also handle streams, but I haven't used that. I just created a temporary HTML file, let wkhtmltopdf convert it to PDF and removed the HTML file.
 
Mark

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal