K
K
Klimka2011-10-24 23:58:10
PHP
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)
C
CrazySquirrel, 2011-10-25
@CrazySquirrel

framework.zend.com/manual/1.11/en/zend.pdf.html

P
polevsl, 2011-10-25
@polevsl

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

F
Fastto, 2011-10-25
@Fastto

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

S
Sardar, 2011-10-25
@Sardar

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.

U
Ura78, 2011-10-25
@Ura78

Try the mPDF library

V
Vorchun, 2011-10-25
@Vorchun

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

S
Sergey, 2016-09-15
@starosta

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