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:
$nid = $node->nid;
$sql="select title from drupal5_node where nid like '".$nid."'";
$rs = mysql_query($sql);
$result = mysql_fetch_array($rs);
$tmp2 = $result[0];
print $tmp2;
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
Comment #1
jcnventuraTCPDF 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.
Comment #2
n2nx15 commentedi tried this code to set the footer :
print $print['footer_message'];but the result for that code, the footer disappear, and it is appear in the body, what happen with this?
Comment #3
n2nx15 commentedi tried this code to set the footer :
print $print['footer_message'];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?
Comment #4
jcnventuraNo idea.. If that's what TCPDF decided to do, then it's what it wants to do.. I can't fix TCPDF.
Comment #5
jcnventuraNo further info in two weeks. Closing the issue.