Replies: 2 comments 1 reply
-
I don't think this is possible with mPDF, the page size is inherently required for the created document. You could set page height to an obscene amount and then crop the empty bottom space from the resulting PDF by an external program |
Beta Was this translation helpful? Give feedback.
0 replies
-
You could probably make this work by:
You can then create a new mPDF object with the calculated paper size and generate the PDF as you normally would. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm trying to create a PDF file to use in a thermal printer, so I need only one page that height will increase depending on the information.
I'm completely blocked with this feature, so it's possible to do that with MPDF?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions