mpdf / mpdf.github.io

mPDF documentation
https://mpdf.github.io
Other
504 stars 160 forks source link

Added optional `continue2pages` parameter to `SetDocTemplate` method #166

Closed bmg-ruudv closed 3 years ago

bmg-ruudv commented 3 years ago

Added optional continue2pages parameter to SetDocTemplate method, allowing a template to continue the last 2 pages alternately.

This option makes it possible to set a document template of (minimum) 2 pages, where the last 2 pages will continue to be used alternately as a template. This allows the creation of PDF's for booklets with a background where the left page of the booklet matches in the right page of the booklet. For example, you can use a 2 paged PDF as a template, where page 1 is used for each left (odd) page of the booklet and page 2 is used for each right (even) page of the booklet.

Related to changes in pull request: https://github.com/mpdf/mpdf/pull/1485

Note that the changelog should be changed to the correct version number as soon as the correct version number is known