P
P
Pavel Busel2015-01-10 14:34:50
PHP
Pavel Busel, 2015-01-10 14:34:50

What library should be used to generate reports in PDF?

Good day. There is a task of formation of templates in HTML, RTF and PDF. For the first two, the Smarty library does a great job. As for the latter, I googled a lot and didn’t google anything suitable. the task is to create a template with replacements and fill this template with data. All that I found was either converting from HTML to PDF (the option is not suitable because of possible conversion inaccuracies, and the client needs the report to comply with regulatory requirements), or create a template in the code.
Thank you in advance for your help.
UPD I forgot to clarify - the client's hosting is a regular shared one, so no additional libraries can be substituted.
UPD Alternatively, you can convert RTF to PDF. I did not find a library for direct conversion, only through HTML

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander Taratin, 2015-01-10
@Taraflex

wkhtmltopdf.org
Uses webkit engine, conversion is quite accurate.

Z
Zveroboy8, 2015-01-10
@Zveroboy8

I used the PHPRtfLite class for the same task https://github.com/phprtflite/PHPRtfLite
There is also a good article on the topic of PDF file templating, web-developments.ru/web-programmirovanie/replase-t...

X
xmoonlight, 2015-01-10
@xmoonlight

PhantomJS: the example
can be moved to the custom native.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question