Hi Lahiru,

Thanks for the input, I have done a small research on this. This contain
the MIT license and its seems to be a easy library to do the task.

But I also found several drawbacks which will make it hard for us to use.
- To use the java wrapper, wkhtmltopdf must be installed and working on the
system. (If we deploy the jar in several servers this need to be added to
all)
- Not available as a maven repo, need to add additional repository
jitpack.io

Best Regards,
~Vinuri~



On Mon, Jan 2, 2017 at 11:45 AM, Lahiru Manohara <[email protected]> wrote:

> 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 <[email protected]> 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
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Lahiru Manohara*
> *Software Engineer*
> Mobile: +94716561576
> WSO2 Inc. | http://wso2.com
> lean.enterprise.middleware
>



-- 
Vinuri Perera
Software Engineer | WSO2 Inc

M : 0711518805
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to