I are doing some research about HTML to PDF conversions I know there are million ways to achieve this but based on some criteria’s (listed below) I have selected three solutions.
List of criteria’s
List of Solutions:
Solution 1: Using open source plugins:
I have find out lots of open source APIS to suit our purpose but I zeroed down to PDFbox; This is an open source API from Apache foundation.
I have implemented one custom service to convert html to pdf in Adobe Experience Manager custom service that is able to modify PDF documents.
The custom service is developed by using Apache PDFBOX Java API. Read more about this here: http://pdfbox.apache.org/
This API has following features:
Extract Unicode text from PDF files.
Split & Merge
Split a single PDF into many files or merge multiple PDF files.
Extract data from PDF forms or fill a PDF form.
PDF files against the PDF/A-1b standard.
Print a PDF file using the standard Java printing API.
Save as Image
Save PDFs as image files, such as PNG or JPEG.C
Create a PDF from scratch, with embedded fonts and images.
Digitally sign PDF files.
Solution 2: Using Adobe LiveCycle connector
AEM and LiveCycle Connector enables seamless invocation of Adobe LiveCycle ES4 Document Services from within AEM Ib apps and workflows. LiveCycle provides a rich client SDK, which allows client applications to invoke LiveCycle services using Java APIs. AEM LiveCycle Connector simplifies using these APIs within the OSGi environment.
Solution 3: Using Java PDF API
Read for more details: http://help.adobe.com/en_US/livecycle/9.0/programLC/javadoc/com/adobe/idp/Document.html
Can Any one recommend any other way or best way to convert HTML to PDF or Word to PDF?
I know it's late but will be useful for others. I also see PDFbox to be useful. We also have PDF generator service we could use.