Project

General

Profile

Paste
Download (723 Bytes) Statistics
| Branch: | Revision:

root / drupal7 / sites / all / modules / print / print_pdf / lib_handlers / print_pdf_tcpdf / print_pdf_tcpdf.class.inc @ 76bdcd04

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
  /**
16
   * Display invisible link at the bottom of all pages.
17
   *
18
   * @param string $tcpdflink
19
   *   TCPDF link.
20
   */
21
  public function setTcpdfLink($tcpdflink) {
22
    $this->tcpdflink = $tcpdflink;
23
  }
24

    
25
  /**
26
   * Page footer data.
27
   *
28
   * @param string $arg
29
   *   Footer contents.
30
   */
31
  public function setFooterContent($arg = '') {
32
    $this->footer = $arg;
33
  }
34

    
35
  /**
36
   * Page footer.
37
   */
38
  public function Footer() {
39
    theme('print_pdf_tcpdf_footer2', array('pdf' => $this));
40
  }
41

    
42
}