function views_pdf_plugin_display::render in Views PDF 7.2
Same name and namespace in other branches
- 6 views_pdf_plugin_display.inc \views_pdf_plugin_display::render()
- 7.3 views_pdf_plugin_display.inc \views_pdf_plugin_display::render()
- 7 views_pdf_plugin_display.inc \views_pdf_plugin_display::render()
Render the display
Overrides views_plugin_display::render
File
- plugins/
views_pdf_plugin_display.inc, line 29 - 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);
}