print_pdf_tcpdf.class.inc 575 B

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