Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
Save as Dialog after newly built PDF |
Post Reply |
Author | |
zero_g
Beginner Joined: 19 Jan 12 Location: Germany Status: Offline Points: 12 |
Post Options
Thanks(0)
Posted: 19 Jan 12 at 7:07PM |
Hello,
I am using the Quick PDF Library during the Trial Period. I filled a given Form (used as a Template) with the SetFormFieldValueByTitle Property. That works so far. A new flattened PDF-Form will be created. When I opened the new PDF File with lets say Acrobat Reader and close it immediatly I was asked "Would you like to save changes Yes/No/Cancel". What changes could that be? This dialog makes me a bit nervous. Greetings Tom
|
|
AndrewC
Moderator Group Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
|
If you are flattening formfields then it is most likely there are some fields still present and the NeedAppearances flag is still turned on so Acrobat is attempting to update the appearance streams.
The following line after your LoadFromFile call should fix the problem. QP.SetNeedAppearances(0); To remove all the formfields you could do the following for (int i= QP.FormFieldCount(); i>=1 ; i++) // for I = QP.FormFieldCount downto 1 QP.DeleteFormField(i); |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi Tom!
Flattened or not ... there are still fragments from a form type pdf inside the content and acrobat is searching for it and gives you the warning message. Cheers and welcome here, Ingo |
|
zero_g
Beginner Joined: 19 Jan 12 Location: Germany Status: Offline Points: 12 |
Post Options
Thanks(0)
|
Hallo AndrewC,
thank you for your help. I inserted the DeleteFormField() Command and now it works very well. It seems that the SetNeedAppearances() is (in my case) not necessary. Thanks to all. Tom
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store