With normal html
no problem! Slightly remade the example and ready.
But how to generate PDF
from HTML
with images?
<img src="бла бла бла">
use the WriteHTML()
method
Docks: http://www.tcpdf.org/doc/code/classTCPDF.html#ac3fdf25fcd36f1dce04f92187c621407
Example: http://www.tcpdf.org/examples/example_006.phps
Result: http://www.tcpdf.org/examples/example_006.pdf
An example of generating a PDF from an SVG image:
$pdf->ImageSVG($file='/home/vipviz00/ vipvizitka.in.ua/vv/po/image.svg', $x=15, $y=30, $w='', $h='', $link='http://www.tcpdf.org', $align='', $palign='', $border=1, $fitonpage=false);
Source: https://ru.stackoverflow.com/questions/136171/
All Articles