You are here

function views_pdf_plugin_display::render in Views PDF 6

Same name and namespace in other branches
  1. 7.3 views_pdf_plugin_display.inc \views_pdf_plugin_display::render()
  2. 7 views_pdf_plugin_display.inc \views_pdf_plugin_display::render()
  3. 7.2 plugins/views_pdf_plugin_display.inc \views_pdf_plugin_display::render()

Render the display

File

./views_pdf_plugin_display.inc, line 26
PDF display plugin.

Class

views_pdf_plugin_display
This class contains all the functionality of the PDF display.

Code

function render() {

  // Generall document layout
  // Set default code
  $this->view->pdf
    ->SetFont('');

  // Add leading pages
  $path = $this->view->pdf
    ->getTemplatePath($this
    ->get_option('leading_template'));
  $this->view->pdf
    ->addPdfDocument($path);

  // Set the default background template
  $path = $this->view->pdf
    ->getTemplatePath($this
    ->get_option('template'));
  $this->view->pdf
    ->setDefaultPageTemplate($path, 'main');

  // Render the items
  $this->view->style_plugin
    ->render();

  // Add succeed pages
  $path = $this->view->pdf
    ->getTemplatePath($this
    ->get_option('succeed_template'));
  $this->view->pdf
    ->addPdfDocument($path);
}