Klimka2011-10-24 23:58:10
Klimka, 2011-10-24 23:58:10

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

7 answer(s)
CrazySquirrel, 2011-10-25


polevsl, 2011-10-25

In addition to zend, I also use www.tcpdf.org/ I
also like it. In my opinion, for simple tasks it is simpler.

Fastto, 2011-10-25

I recently had to do some research on this topic.
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

Sardar, 2011-10-25

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.

Ura78, 2011-10-25

Try the mPDF library

Vorchun, 2011-10-25

We use mpdf in three projects www.mpdf1.com/mpdf/ We like it

Sergey, 2016-09-15

We use pdf4b.ru , we send GET from HTML we get PDF, everything is correct

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question