function hook_print_epub_generate in Printer, email and PDF versions 7.2
Generate a EPUB version of the provided HTML.
Parameters
string $html: HTML content of the EPUB.
array $meta: Meta information to be used in the EPUB
- url: original URL
- name: author's name
- title: Page title
- node: node object.
string $filename: (optional) Filename of the generated EPUB.
Return value
string|null generated EPUB page, or NULL in case of error
See also
print_epub_controller_html()
Related topics
1 function implements hook_print_epub_generate()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- print_epub_phpepub_print_epub_generate in print_epub/
lib_handlers/ print_epub_phpepub/ print_epub_phpepub.pages.inc - Implements hook_print_epub_generate().
File
- print_epub/
print_epub.api.php, line 33 - Hooks provided by the EPUB version module.
Code
function hook_print_epub_generate($html, $meta, $filename = NULL) {
$epub = new EPUB();
$epub
->writeHTML($html);
if ($filename) {
$epub
->Output($filename);
return TRUE;
}
else {
return $epub
->Output();
}
}