Filling in and saving PDF Forms in LiveCode

Interested in using the many environmental add-ons and extensions from LiveCode and third parties to the flexible LiveCode environment? This is the place to talk about it.

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
Martin Koob
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 217
Joined: Sun May 27, 2007 8:19 pm

Filling in and saving PDF Forms in LiveCode

Post by Martin Koob » Mon Dec 12, 2016 10:57 pm

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

MaxV
Posts: 1342
Joined: Tue May 28, 2013 2:20 pm
Location: Italy
Contact:

Re: Filling in and saving PDF Forms in LiveCode

Post by MaxV » Wed Dec 14, 2016 12:12 pm

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)
Livecode Wiki: http://livecode.wikia.com
My blog: http://livecodeitalia.blogspot.it
To post code use this: http://tinyurl.com/ogp6d5w

Martin Koob
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 217
Joined: Sun May 27, 2007 8:19 pm

Re: Filling in and saving PDF Forms in LiveCode

Post by Martin Koob » Wed Dec 14, 2016 3:36 pm

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

Post Reply

Return to “Using Environment Extensions”