print_pdf_generate_html

  1. print
    1. 7
    2. 6
Versions
6 – 7 print_pdf_generate_html($print, $html, $filename = NULL)

Code

print_pdf/print_pdf.pages.inc, line 102

<?php
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 (drupal_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;
}
?>