Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin DW2PDF doesn't support custom pagesize #511

Open
Juergen-aus-Zuendorf opened this issue Sep 12, 2024 · 1 comment
Open

Plugin DW2PDF doesn't support custom pagesize #511

Juergen-aus-Zuendorf opened this issue Sep 12, 2024 · 1 comment

Comments

@Juergen-aus-Zuendorf
Copy link
Contributor

In the past, it was possible to set the parameter "pagesize" to custom values.
Example: "do=export_pdf&pagesize={216,303}"

But now, when processing the plugin, there comes an error message that the pagesize isn't allowed.

Best regards
Juergen

Repository owner deleted a comment Oct 24, 2024
@Klap-in
Copy link
Collaborator

Klap-in commented Nov 14, 2024

The format variable supports an array with the size in mm. https://mpdf.github.io/reference/mpdf-functions/construct.html
However, the pagesize url parameter assumes its value is a string. So probably your array is offered as string to mpdf library and not as array with numbers. Pull request, with proper sanitizing, is welcome.

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

No branches or pull requests

2 participants