New module 'Printer-friendly pages'
This commit is contained in:
parent
ae482480b2
commit
b70f11745a
38 changed files with 8667 additions and 0 deletions
29
sites/all/modules/print/print_pdf/print_pdf.class.inc
Normal file
29
sites/all/modules/print/print_pdf/print_pdf.class.inc
Normal file
|
@ -0,0 +1,29 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Extend the TCPDF class to be able to customize the Footer
|
||||
*
|
||||
* This file is included by the _print_pdf_tcpdf function
|
||||
*
|
||||
* @ingroup print
|
||||
*/
|
||||
|
||||
class PrintTCPDF extends TCPDF {
|
||||
public $footer;
|
||||
|
||||
// Display invisible link at the bottom of all pages.
|
||||
public function setTcpdfLink($tcpdflink) {
|
||||
$this->tcpdflink = $tcpdflink;
|
||||
}
|
||||
|
||||
// Page footer data
|
||||
public function setFooterContent($arg = '') {
|
||||
$this->footer = $arg;
|
||||
}
|
||||
|
||||
// Page footer
|
||||
public function Footer() {
|
||||
theme('print_pdf_tcpdf_footer2', $this);
|
||||
}
|
||||
}
|
Reference in a new issue