Dynamically create pdf file with background image

I am trying to dynamically create a PDF (on the server) with some text on top of a predefined background image. I use PHP and I just can't find it.

I looked at http://www.fpdf.org/ and a bunch of other options.

I don't mind using Flash if it does the trick.

Does anyone have any ideas on how to make this work?

+3
source share
4 answers

You should take a look at this class, I really like it. It displays HTML to PDF, and if you define a background image using CSS, it will be in the generated PDF file.

+7
source

FPDF :

$fpdf = new FPDF();
$fpdf->AddPage();
$fpdf->Image('background-image.png', 0, 0, $fpdf->w, $fpdf->h);
$fpdf->Output();

, , -.

+17

TCPDF, () HTML . TCPDF , ( 51 ).

+2

, dompdf.

, ;)... , (PHP, HTML), , -, (PDF). wiki HTML PDF ( PHP-).

0

Source: https://habr.com/ru/post/1792260/


All Articles