Answer the question
In order to leave comments, you need to log in
From html to pdf. Recommend a good php library
There is a task:
Save and convert the text typed in visivig in the browser to pdf - so that later it would be convenient to print this text on a non-standard paper format.
Tell me, who worked with what libraries, does anyone have a positive experience?
Thanks in advance.
Answer the question
In order to leave comments, you need to log in
In addition to zend, I also use www.tcpdf.org/ I
also like it. In my opinion, for simple tasks it is simpler.
I recently had to do some research on this topic.
html2pdf
is the most functional, but the speed of generating a "complex page" is 30s, the file size is 1mB
the fastest - - it compiles for any axis, there is a wrapper for PHP, the time for the same page is < 1c, the file size is 60kb, one minus - there is no support for UTF- eight
First, read this topic: habrahabr.ru/blogs/sysadm/113928/
Then install and use: code.google.com/p/wkhtmltopdf/
Advantages of the approach: real rendering. I used html2pdf, but it tries to draw HTML itself through reportlab's library (like pypdf can do it too). As a result, there are a lot of graphical glitches, and the designer got on quite a few nerves.
However, if the layout is very simple, then your own renders will do. But then you are not immune from rendering glitches at the most inopportune moment.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question