Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trying to find list of supported CSS for TCPDF

Tags:

php

pdf

tcpdf

I am trying to find the list of supported CSS for TCPDF - supposedly there's a list in here: getHtmlDomArray(), but I cannot find this function in any of the files.

Has it been updated recently? I'm trying to add margins on every div.

like image 520
Steven Matthews Avatar asked Jan 22 '14 14:01

Steven Matthews


1 Answers

Margin and padding doesn't work with TCPDF.

You can see two links :

  • Why does TCPDF ignore my inline CSS?

But I don't now if the list is complet. (Edit) His link doesn't work but the new link is here : TCPDF doc

And this one :

  • TCPDF not render all CSS properties

he suggests to take wkhtmltopdf if you need convert html to pdf but I never use.

I have try to do something with tcpdf and I think that it's not the better for html but the multicell() is very good.

like image 127
Lynxi Avatar answered Sep 28 '22 00:09

Lynxi