This documentation is not using the current rendering mechanism and will be deleted by December 31st, 2020. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.
Upgrading from 1.x.x to 2.x.x¶
Replaced EmptyFPDI and EmptyTCPDF by BasePDF¶
EmptyTCPDF have been replaced by
BasePDF. If you have any TypoScript configuration or PHP Code using these
classes you should replace them by
Bithost\Pdfviewhelpers\Model\BasePDF. The class
BasePDF offers the same functionality as the other classes before
while adding the possibility to use header and footer ViewHelpers.
Provided class must inherit from BasePDF¶
The PDF class you can provide in
plugin.tx_pdfviewhelpers.settings.config.class is now required to inherit from
Removed example class BithostTCPDF¶
The example class
BithostTCPDF has been removed without a replacement.
BasePDF, and see the basic usage example on how to render a similar header.
All utility methods that start with
isValid have been moved to a separate class
If you implemented custom ViewHelpers you have to change these method calls.
Renamed page.margins to page.margin¶
The TypoScript setting
plugin.tx_pdfviewhelpers.settings.page.margins has been renamed to
Also the Fluid PageViewHelper attribute has been renamed from
Changed default value of page.autoPageBreak¶
plugin.tx_pdfviewhelpers.settings.page.autoPageBreak is now enabled by default.
Moved settings from config to document¶
plugin.tx_pdfviewhelpers.settings.config.hyphenFile have been moved to
plugin.tx_pdfviewhelpers.settings.document.hyphenFile. That allows to set this values in the Fluid template and thus allows to create documents of different languages in a batch process.