Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello!
My problem was that the PDF document from a node was empty.
I use the integration between Print module (v:7.x-2.0) and Service Links (v:7.x-2.3).
I also use Display Suite, custom page.tpl for content types and Path auto.
I could resolve this using node-id tag instead query in the print_services.module.
Line 27
if (module_exists('print_pdf')) {
$links['printpdf'] = array(
'name' => 'Print PDF',
'link' => '<front-page>printpdf/<node-id>',
'description' => t('PDF version'),
);
}
If you could change that, I would tank you a lot!! :)
Alek
Comments
Comment #2
alek123 CreditAttribution: alek123 commentedComment #3
alek123 CreditAttribution: alek123 commentedI still have the error... I will look better why I have this problem.
Alek
Comment #4
alek123 CreditAttribution: alek123 commentedI found the problem!!
In my theme template.php has a preprocess_page hook function with:
I added
To take the correct tpl because in the ordinary page.tpl the content was render($page['content']) and the print module save the content in $content.
Alek