DEPRECATION WARNING

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

The classes EmptyFPDI and 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 Bithost\Pdfviewhelpers\Model\BasePDF.

Removed example class BithostTCPDF

The example class BithostTCPDF has been removed without a replacement. Please extend BasePDF, and see the basic usage example on how to render a similar header.

Introduces ValidationService

All utility methods that start with isValid have been moved to a separate class ValidationService. 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 plugin.tx_pdfviewhelpers.settings.page.margin. Also the Fluid PageViewHelper attribute has been renamed from page.margins to page.margin.

Changed default value of page.autoPageBreak

The option plugin.tx_pdfviewhelpers.settings.page.autoPageBreak is now enabled by default.

Moved settings from config to document

The settings plugin.tx_pdfviewhelpers.settings.config.language and plugin.tx_pdfviewhelpers.settings.config.hyphenFile have been moved to plugin.tx_pdfviewhelpers.settings.document.language and 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.