Hi,
You’ll need to create a custom PDF template to achieve what you want.
I recommend taking a look at mPDF’s column HTML tags. You can read more about it in their documentation.
Hi Jake. I’ve done it already and been playing around with CSS but I can’t get it to work. Want me to show you what I’ve got?
Sure. Post a Gist of your template and I’ll take a look when able.
Forget it Jake, you’re a LIFESAVER 😀
I was using something like this “$mPDF->SetColumns(nCols[, vAlign [, gap ]]);” and for some reason it wasn’t working.
I tested this one “<columns column-count=”n” vAlign=”justify” column-gap=”n” />” suggested on the link you mentioned and IT WORKED 😀
Amazing, thank you so much. Really. 😀
Glad to be of help.
For the record, Gravity PDF templates are sandboxes in mPDF’s WriteHTML() method. This means you don’t have access to any of the PHP methods like $mpdf->SetColumns(), but have full access to any of the helper HTML like <columns>.
Hello, I am having a similar issue and the links you provided for mPDF are no longer active 🙁
I got pretty close with my custom template, but running into some issues.
I would like the form data to be outputted to a 1 page pdf that is landscape (A4-L) and in 3 columns. I need the overflow from column 1 to be pushed into column two then. Right now it starts a new page and doesn’t utilize columns 2 and 3.
Any tips would be greatly appreciated. Thanks!
The manual is still there, just the URL structure has changed. See http://mpdf.github.io/reference/html-control-tags/columns.html