print_pdf_tcpdf.class.inc 723 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. /**
  13. * Display invisible link at the bottom of all pages.
  14. *
  15. * @param string $tcpdflink
  16. * TCPDF link.
  17. */
  18. public function setTcpdfLink($tcpdflink) {
  19. $this->tcpdflink = $tcpdflink;
  20. }
  21. /**
  22. * Page footer data.
  23. *
  24. * @param string $arg
  25. * Footer contents.
  26. */
  27. public function setFooterContent($arg = '') {
  28. $this->footer = $arg;
  29. }
  30. /**
  31. * Page footer.
  32. */
  33. public function Footer() {
  34. theme('print_pdf_tcpdf_footer2', array('pdf' => $this));
  35. }
  36. }