1
|
<?php
|
2
|
|
3
|
/**
|
4
|
* @file
|
5
|
* Extend the TCPDF class to be able to customize the Footer
|
6
|
*
|
7
|
* This file is included by the _print_pdf_tcpdf function
|
8
|
*
|
9
|
* @ingroup print
|
10
|
*/
|
11
|
|
12
|
class PrintTCPDF extends TCPDF {
|
13
|
public $footer;
|
14
|
|
15
|
// Display invisible link at the bottom of all pages.
|
16
|
public function setTcpdfLink($tcpdflink) {
|
17
|
$this->tcpdflink = $tcpdflink;
|
18
|
}
|
19
|
|
20
|
// Page footer data
|
21
|
public function setFooterContent($arg = '') {
|
22
|
$this->footer = $arg;
|
23
|
}
|
24
|
|
25
|
// Page footer
|
26
|
public function Footer() {
|
27
|
theme('print_pdf_tcpdf_footer2', array('pdf' => $this));
|
28
|
}
|
29
|
}
|