Entity PDF
Categories
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
Downloads
Component created
Component changed
Component body
Entity PDF can create a PDF from any node based on any view mode. Support for other entities is coming, contact me if you need it!
Entity PDF uses mpdf7. (currently beta only)
Install with composer only!
The module provides a htmlpdf.html.twig file so you can control the entire HTML structure that gets converted to PDF. No CSS and/or JS from Drupal will get added so you need to add everything by hand in the twig file.
All fields will get a view mode template suggestion added so you can theme fields for your PDF view mode.
(Once https://www.drupal.org/node/2270883 is in core this should all work out-of-the-box in Drupal)
If you use Display Suite, an extra (ds_)field will become available on all view modes that outputs a link to your PDF view. (view mode for the generation can be selected)
There is some basic access checking and a permission to view PDF's: don't forget to check it.
More access control and checks are coming. (if you need them now: contact me)
