This repository has been archived on 2025-06-21. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
suitedesk/modules/print/print_pdf/print_pdf.class.inc

29 lines
559 B
PHP

<?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);
}
}