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!
![]() |
FormFieldCount Error |
Post Reply ![]() |
Author | |
JohnTurpin ![]() Beginner ![]() ![]() Joined: 26 Apr 12 Location: USA Status: Offline Points: 4 |
![]() ![]() ![]() ![]() ![]() Posted: 26 Apr 12 at 4:11PM |
I have a PDF with fields which I use as a template.
I use CopyPageRanges to copy it to a new document. The problem is when I call FormFieldCount on the new doc it returns zero!...the original had 42 fields. PdfLib.NewDocument(); int ChqsDocID = PdfLib.SelectedDocument(); int i = PdfLib.LoadFromFile(FN, ""); int TemplateDocID = PdfLib.SelectedDocument(); int FldCnt = PdfLib.FormFieldCount(); //42 fields in the template PdfLib.SelectDocument(ChqsDocID); i = 1; while (i <= NumFormsIWant) { PdfLib.CopyPageRanges(TemplateDocID, "1"); //This works int FldCnt2 = PdfLib.FormFieldCount(); //RETURNS ZERO! if (PdfLib.SetFormFieldValueByTitle("FldName", "SomeVal") == 0); //This always fails as it does not recognize the fields yet! ......... } Any help would be appreciated |
|
![]() |
|
AndrewC ![]() Moderator Group ![]() ![]() Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
![]() ![]() ![]() ![]() ![]() |
Which version of QuickPDF Library are you using ? DLL, ActiveX ?? 8.xx or 7.xx ?
You may need to send the document to the official support forums so that we can test it. You can uses the following link to submit a new support cast. Andrew.
|
|
![]() |
|
JohnTurpin ![]() Beginner ![]() ![]() Joined: 26 Apr 12 Location: USA Status: Offline Points: 4 |
![]() ![]() ![]() ![]() ![]() |
I am using version 8.13
I am using the dll (QuickPDFDLL0813.dll) The problem seems to be that the changes are not committed to the PDF until a second operation is performed. For example: PdfLib.CopyPageRanges(TemplateDocID, "1"); /* Let's call this "First Form". */ |
|
![]() |
|
JohnTurpin ![]() Beginner ![]() ![]() Joined: 26 Apr 12 Location: USA Status: Offline Points: 4 |
![]() ![]() ![]() ![]() ![]() |
|
|
![]() |
|
JohnTurpin ![]() Beginner ![]() ![]() Joined: 26 Apr 12 Location: USA Status: Offline Points: 4 |
![]() ![]() ![]() ![]() ![]() |
PS...I will post to the support link you provided.
|
|
![]() |
|
AndrewC ![]() Moderator Group ![]() ![]() Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
![]() ![]() ![]() ![]() ![]() |
John,
This bug should be fixed in the 8.16 Beta 1 release. Thanks for reporting it. Andrew.
|
|
![]() |
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