Thanks for sharing, Jay! Do you know (or can you find out) if the HTML form fields (input, etc.) becomes "enterable" fields in the final PDF?
Also this is MacOS, are there alternatives for Windows?
ScriptMaster with iText, steeper learning curve but fewer moving parts and most powerful solution. Not this obviously though....
I don't know about generating PDF fields from HTML form fields. It's not something we've tried. I can ask one of the main architects darrenburgess or brianbee of this particular method, which we built mainly for control over formatting reports, rather than PDF form generation, per se.
What's described is OS X-only. We chose to do the blog post showing OS X-only, to keep the instructions "short" (LOL) ... and because this is how we've implemented for customers, so it's fairly well tested. I'm told that it should be fairly viable on Windows -- would need to try using BaseEle ments Plugin (or possibly MBS, et. al.).
Looks like WKHTMLTOPDF can convert html form fields to pdf form fields.
Here are the two command arguments that turn this off and on:
--disable-forms Do not turn HTML form fields into pdf form fields (default)
--enable-forms Turn HTML form fields into pdf form fields
from the documentation:
I ran the following command on the Beezwax contact page and got back a pdf with functioning form fields. Unfortunately wkhtmltopdf totally trashed the page, which is probably just too fancy for wkhtmltopdf.
wkhtmltopdf --enable-forms https://beezwax.net/contact ~/Desktop/test.pdf
test 5.42.57 PM.pdf 199.7 K
Thanks, Darren and Jay!