function views_pdf_get_new_pdf_instance in Views PDF 7
Same name and namespace in other branches
- 6 views_pdf.module \views_pdf_get_new_pdf_instance()
- 7.3 views_pdf.module \views_pdf_get_new_pdf_instance()
- 7.2 views_pdf.module \views_pdf_get_new_pdf_instance()
This method can be used to load the PDF library class.
1 call to views_pdf_get_new_pdf_instance()
- views_pdf_plugin_display::execute in ./
views_pdf_plugin_display.inc - This function executes the PDF display.
File
- ./
views_pdf.module, line 64 - PDF Views allows the creation of PDF's directly from a view. Without the creation of HTML first.
Code
function views_pdf_get_new_pdf_instance($orientation = 'P', $unit = 'mm', $format = 'A4', $unicode = TRUE, $encoding = 'UTF-8', $diskcache = FALSE) {
_views_pdf_include_pdf_lib();
return new PdfTemplate($orientation, $unit, $format, $unicode, $encoding, $diskcache);
}