function hook_pdf_tool_info in Printer, email and PDF versions 7.2
Provide some information on the needs of the PDF library.
Return value
array Associative array with the following data:
- name: name of the PDF library.
- min_version: minimum version of the PDF library supported by the module.
- url: URL where the PDF library can be downloaded from.
- expand_css: boolean flag indicating whether to expand the CSS files in the HTML passed to the PDF library, or to leave it as a list of include directives.
- public_dirs: directories to which the tool requires write-access, with configurable locations.
- tool_dirs: directories to which the tool requires write-access, but can't be configured, and are relative to the tool's root path.
Related topics
4 functions implement hook_pdf_tool_info()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- print_pdf_dompdf_pdf_tool_info in print_pdf/
lib_handlers/ print_pdf_dompdf/ print_pdf_dompdf.module - Implements hook_pdf_tool_info().
- print_pdf_mpdf_pdf_tool_info in print_pdf/
lib_handlers/ print_pdf_mpdf/ print_pdf_mpdf.module - Implements hook_pdf_tool_info().
- print_pdf_tcpdf_pdf_tool_info in print_pdf/
lib_handlers/ print_pdf_tcpdf/ print_pdf_tcpdf.module - Implements hook_pdf_tool_info().
- print_pdf_wkhtmltopdf_pdf_tool_info in print_pdf/
lib_handlers/ print_pdf_wkhtmltopdf/ print_pdf_wkhtmltopdf.module - Implements hook_pdf_tool_info().
File
- print_pdf/
print_pdf.api.php, line 32 - Hooks provided by the PDF version module.
Code
function hook_pdf_tool_info() {
return array(
'name' => 'foopdf',
'min_version' => '1.0',
'url' => 'http://www.pdf.tool/download',
'expand_css' => FALSE,
'public_dirs' => array(
'fonts',
'cache',
'tmp',
),
'tool_dirs' => array(
'xyz',
),
);
}