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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - Save as Dialog after newly built PDF
  FAQ FAQ  Forum Search   Register Register  Login Login

Save as Dialog after newly built PDF

 Post Reply Post Reply
Author
Message
zero_g View Drop Down
Beginner
Beginner


Joined: 19 Jan 12
Location: Germany
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote zero_g Quote  Post ReplyReply Direct Link To This Post Topic: Save as Dialog after newly built PDF
    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
Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post Posted: 19 Jan 12 at 9:35PM
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);

Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 21 Jan 12 at 10:07AM
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

Back to Top
zero_g View Drop Down
Beginner
Beginner


Joined: 19 Jan 12
Location: Germany
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote zero_g Quote  Post ReplyReply Direct Link To This Post Posted: 23 Jan 12 at 4:31PM
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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store