We are using Print module in conjunction with Book module. The aim is to be able to produce a pdf of a Book. By default the Print module creates a pdf of all pages in a book when using the link on the books front page. This is very good except that it includes a PDF Version link for each page in the book. This link is redundant (confusing, distracting) within the PDF. To remove this link I created a custom print.tpl.php file in the sites theme folder. On line 37 of the tpl file (see attached) I replace $print['content'] with $node->body (after calling node_load. This successfully removes the PDF Version link but now the PDF Version link creates a PDF with only the current page in it.
| Comment | File | Size | Author |
|---|---|---|---|
| print.tpl_.php.txt | 1.74 KB | geekglue |
Comments
Comment #1
jcnventuraHi,
I just tested this, and no page in the book includes the PDF link. Can you provide further info on what are the conditions to reproduce the problem?
As to the problem with the contents of the $node->body, that's to be expected, as the book hierarchy must be traversed and that's done via the book_menu_subtree_data() and the book_export_traverse() calls.
Comment #2
jcnventuraNo further info in two weeks. Closing the issue.