Hi, everybody

i use Printer, e-mail and PDF versions in drupal to generate a pdf files, i have a problem to set the footer and header in the pdf,
--------------------------------------------------------------------------------------------------------------------
i tried to set from print.css for footer

code in print.tpl.php:

code in print.css:
.print-footer {text-align: center;}

i think with that code the footer text will be in the middle of the footer area but it isn't, it still in left side
---------------------------------------------------------------------------------------------------------------------

for the header:
code in print.tpl.php:

code in print.css:
.print-site_name { color:#FF0000; font-size:10px;}

after i input that code in print.css, nothing happen.
---------------------------------------------------------------------------------------------------------------

any advice to make the css work or another alternative?

Comments

jcnventura’s picture

Status: Active » Postponed (maintainer needs more info)

TCPDF doesn't even read the CSS files, so it doesn't matter what you're doing.

You have to use the style inline in the HTML tags.

n2nx15’s picture

i tried this code to set the footer :

but the result for that code, the footer disappear, and it is appear in the body, what happen with this?

n2nx15’s picture

i tried this code to set the footer :

i insert style="text-align:center; into the div
but the result for that code, the footer disappear, and it is appear in the body, what happen with this?

jcnventura’s picture

No idea.. If that's what TCPDF decided to do, then it's what it wants to do.. I can't fix TCPDF.

jcnventura’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

No further info in two weeks. Closing the issue.