Improve the output of printed pages to pdf
This commit is contained in:
parent
39729c5f8e
commit
2e20b06d22
3 changed files with 10 additions and 8 deletions
|
@ -85,6 +85,8 @@ function print_pdf_generate_path($path, $cid = NULL, $pdf_filename = NULL) {
|
|||
return;
|
||||
}
|
||||
|
||||
$print['body_class'] = 'print-pdf';
|
||||
|
||||
// Img elements must be set to absolute
|
||||
$pattern = '!<(img\s[^>]*?)>!is';
|
||||
$print['content'] = preg_replace_callback($pattern, '_print_rewrite_urls', $print['content']);
|
||||
|
|
Reference in a new issue