Skip to content

Conversation

@andjsch
Copy link
Contributor

@andjsch andjsch commented Jul 25, 2025

This PR allows to set margins for a page.

Previously, if the generated content was longer than the page, it content would have been cut off. This PR allows to set margins for a PDF page and content to not be cut off - resulting in multiple pages if needed.

Feel free to add the following to the addons config file:

/**
 * The margins applied to PDF pages.
 */
'margins' => [
    'top' => 0,
    'right' => 15,
    'bottom' => 5,
    'left' => 10,
    'unit' => 'mm',
],

@andjsch andjsch changed the title Add margins config Add margins config and allow for multiple PDF pages Jul 25, 2025
@andjsch andjsch merged commit 0b151c3 into main Jul 25, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants