F
F
Fastto2011-07-22 18:10:40
PHP
Fastto, 2011-07-22 18:10:40

Template engine for creating PDF in PHP

After a little googling on the subject, I found a sufficient number of all sorts of creators and 2pdf systems - everywhere pdf is generated programmatically.
Is there a template engine for creating pdf (an analogue of the same smart) - i.e. so that I once created a template in a more or less human-like form and based on it a document with variable values ​​\u200b\u200bwould be created.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
C
Cord, 2011-07-23
@Cord

In short, the most reliable thing
is to generate HTML of any complexity,
and use wkhtmltopdf in the console.
tested on 1C invoices, converted to PDF from HTML. EVERYTHING found, all libraries sucked.
wkhtmltopdf, called from the console, is not dumb with styles, nor with Russian

G
Gribozavr, 2011-07-22
@gribozavr

LaTeX.

G
Gesper, 2011-07-22
@Gesper

I used 2 approaches for such tasks.
1) smart to generate the invoice page and then with the help of html2pdf they distilled it into PDF.
2) now we are using graphic substrates with the image of forms, we have made a tool for marking these substrates (where to apply what value). And then we just apply inscriptions to the right places of the substrates with the help of PHP and collect images into PDF files using PDFlib. this way is more difficult to implement, but much less hemorrhoids to use. Because when converting an HTML template to PDF, it took a very long time to check the layout of the template.

A
Alexey, 2011-07-22
@alexxxst

... But why? (with)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question