Page 1 of 1

Filling in and saving PDF Forms in LiveCode

Posted: Mon Dec 12, 2016 10:57 pm
by Martin Koob
I want to be able to display a fillable PDF form in LiveCode and then allow the user to fill it in and then save the resulting document.

I have tried a couple of things.

PDF Viewer
- I have the LiveCode Business Licence so I have the PDF Viewer. When I open a fillable PDF form I can only view the PDF I can't fill in the fillable fields.

Browser instance
- I have tried viewing the fillable PDF form in a Browser instance. I can fill out the fillable fields but my difficulty is in saving the resulting form.

-I tried printing the browser instance with the revBrowserPrint command and then save as a PDF in the dialog.
- this does print the browser page but the page of the PDF that is in view but not the whole document.

Is there a way to do this that I can save the filled form as a PDF?

Martin

Re: Filling in and saving PDF Forms in LiveCode

Posted: Wed Dec 14, 2016 12:12 pm
by MaxV
First of all, fillable PDF can't be saved filled. The fillable PDF "standard" borne with the horrible idea to fill it and print it and sign it, but not to save it.
So printing it is the only way, to print an entire document correctly you have to use an external program with the command:

Code: Select all

launch document "myForm.pdf"
. Fill and print with the external program. (launch will use the computer default program for PDF)

Re: Filling in and saving PDF Forms in LiveCode

Posted: Wed Dec 14, 2016 3:36 pm
by Martin Koob
Hi MaxV

Thanks for the insight. I had read that there was data saved as .fdf files and I thought it could be saved.

OK off to think of another approach to this.

Martin