Hi Vinuri,

You can use this library [1] for converting to HTML to PDF. But this is a C
library and you can find Java wrappers [2].

[1] http://wkhtmltopdf.org/index.html
[2] https://github.com/jhonnymertz/java-wkhtmltopdf-wrapper

Best Regards,

On Mon, Jan 2, 2017 at 10:04 AM, Vinuri Perera <vinu...@wso2.com> wrote:

> Hi All,
>
> Currently we are sending an HTML template in an email. We have an
> requirement of moving the HTML template content to PDF and sending as
> attachments.
>
> As to my initial research, we can develop this using 2 different approaches
> - Convert the HTML file to PDF
> - Modify the PDF
>
> Also these are the several libraries I looked into and main drawbacks of
> those-
> - *iText -  *This is not open source, commercial library [1]
> <http://itextpdf.com/>
> - *Apache FOP - *It is said FOP is more computing intensive. [2]
> <http://xmlgraphics.apache.org/fop/>
> - *Apache PDFBox -  *Can only use for PDF manipulation. [3]
> <https://pdfbox.apache.org/>
> - *flying-saucer *- Internally Flying Saucer uses iText
> <http://itextpdf.com/> to generate the pdf. [4]
> <https://code.google.com/archive/p/flying-saucer/>
>
> [1] - http://itextpdf.com/ <http://itextpdf.com/>
> [2] - http://xmlgraphics.apache.org/fop/
> <http://xmlgraphics.apache.org/fop/>
> [3] - https://pdfbox.apache.org/ <https://pdfbox.apache.org/>
> [4] - https://code.google.com/archive/p/flying-saucer/
> <https://code.google.com/archive/p/flying-saucer/>
>
> From those I think the Apache PDFBox seems to matching our requirement.
> Please feel free to let me know if there are any other alternatives.
> I Appreciate your ideas and input on this.
>
> Thank You,
> Best Regards,
> ~Vinuri~
>
> --
> Vinuri Perera
> Software Engineer | WSO2 Inc
>
> M : 0711518805
>
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Lahiru Manohara*
*Software Engineer*
Mobile: +94716561576
WSO2 Inc. | http://wso2.com
lean.enterprise.middleware
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to