tags:

views:

42

answers:

1

when i create dynamic pdf (HTML to PDF) inline css not working like text padding or text margin.

A: 

Am not sure that TCPDF is converting HTML to PDF. We are generating a PDF using commands. We are drawing a PDF. Styles are not much effective there.

Try http://www.digitaljunkies.ca/dompdf/examples.php#demo

Its easy and taking inline style

<html>
<head>
<style>

/* Type some style rules here */

</style>
</head>

<body>
<table><tr><td style='background-color:red'>asdasdasdasd</td></tr></table>


</body>
</html>
zod