Print Page | Close Window

Can I save a pdf with completed form fields?

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=2970
Printed Date: 05 May 24 at 7:02PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Can I save a pdf with completed form fields?
Posted By: beau
Subject: Can I save a pdf with completed form fields?
Date Posted: 11 Sep 14 at 10:20AM
Hi all,

I'm new to quickpdf, but have been happily using it to fill in form fields inside a pdf. It's not my pdf, it is one that we are required to submit and I'm filling the form with data from my database. My application then invokes SaveToFile() and the completed form is saved.

However, if my users need to add some additionial information to the form, they open it, amend the form, but when they try to save it, get this message:

"Data typed into this form will not be saved. Adobe reader can only save a blank copy of this form."

Obviously quickpdf does save the completed pdf so presumably the restriction is in Adobe Reader. Is there a document attribute that I can switch off to allow reader to save the form and can quickpdf manipulate the attribute if it exists?

thanks.



Replies:
Posted By: AndyD
Date Posted: 11 Sep 14 at 10:48AM
If you have Acrobat Pro you can open the original PDF and then do this:
 
File > Save As > Reader Extended PDF > Enable Adding Text In Documents
 
This will then allow users of the newly created copy to save filled versions of the document.
 
I'm not sure if QPL can access this setting or whether you will need it to be set in Acrobat Pro.
 
Hope this helps anyway.


Posted By: AndrewC
Date Posted: 15 Sep 14 at 3:11PM
beau,

You can try calling the following two functions before you start updating the data.

            QP.RemoveUsageRights();
            QP.RemoveXFAEntries(1);

It will not work on all forms but in this case I suspect it will

Andrew.



Posted By: beau
Date Posted: 16 Sep 14 at 2:45AM
Thanks Andy and Andrew for your replies.

Andrew, I tried your suggestion, but that didn't make any difference.

However, I now see that the "problem" is my lack of understanding of the signing process, i.e. my users CAN save a copy of the document once they have added a signature.

This locks the document at that point, but that is the form owner's process for preserving the integrity of the data in the form so we'll live with that. Worst case, my user's can start afresh by downloading another form pre-filled from my database and then amend as required.

cheers...

...b



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk