function print_pdf_generate_html in Printer, email and PDF versions 5.x
Same name and namespace in other branches
- 6 print_pdf/print_pdf.pages.inc \print_pdf_generate_html()
- 7.2 print_pdf/print_pdf.module \print_pdf_generate_html()
- 7 print_pdf/print_pdf.pages.inc \print_pdf_generate_html()
1 call to print_pdf_generate_html()
- print_pdf_generate_path in print_pdf/
print_pdf.pages.inc
File
- print_pdf/
print_pdf.pages.inc, line 86
Code
function print_pdf_generate_html($print, $html, $filename = NULL) {
$print_pdf_pdf_tool = variable_get('print_pdf_pdf_tool', PRINT_PDF_PDF_TOOL_DEFAULT);
if (basename($print_pdf_pdf_tool) == 'dompdf_config.inc.php') {
return _print_pdf_dompdf($print, $html, $filename);
}
elseif (basename($print_pdf_pdf_tool) == 'tcpdf.php') {
return _print_pdf_tcpdf($print, $html, $filename);
}
elseif (substr(basename($print_pdf_pdf_tool, '.exe'), 0, 11) == 'wkhtmltopdf') {
return _print_pdf_wkhtmltopdf($print, $html, $filename);
}
elseif ($filename) {
return drupal_not_found();
}
return NULL;
}