I want to create custom templates for different content types.
The easiest way to do that would be if I could use proper TCPDF templates like http://www.tecnick.com/pagefiles/tcpdf/example_001.phps in which I could assign the contents by tokens.

Is there a possibility to do either of these?

Comments

jcnventura’s picture

Status: Active » Postponed (maintainer needs more info)

The module already supports different templates for different content types.. It's basically a question of naming the files as specified in the documentation.

As the module is designed to be library-agnostic at the content level, the template doesn't know about the TCPDF object, making it impossible to use 'proper' TCPDF templates..

You can however use TCPDF's command embedding in the print_pdf.tpl.php template as outlined in http://www.tecnick.com/pagefiles/tcpdf/example_049.phps.

jcnventura’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

No further info in two weeks. Closing the issue.