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!
Update checkbox field |
Post Reply |
Author | |
alecd4
Beginner Joined: 29 Sep 11 Status: Offline Points: 10 |
Post Options
Thanks(0)
Posted: 29 Sep 11 at 6:43PM |
What is a correct value to assign to a checkbox field in PDF form?
I was trying "Yes" to set a check mark in a box but nothing was changed. My app gets "Yes" value from xFDF that is coming from the form. Any other fields - textbox, option list - are okay. I am trying to set form's fields in C# using Quickpdf library All fields are updated but checkboxes. -------------------------------------------------------------------------------------------------------------- Here is my code C# that updates checkbox and textbox fields. PDFLibrary Lib = new PDFLibrary(@"QuickPDFDLL0811.DLL"); Lib.UnlockKey("--key- here--"); Lib.LoadFromFile("T1.pdf",""); int j = Lib.FindFormFieldByTitle("ZmlsZTovLy9DfC9UMS5odG0A.PDS_TEXT_TEXTONE_YAPI_5ccea10a34c3455189ef1c7c6d573bc7"); if (j > 0) { int ret = Lib.SetFormFieldValue(j, "Text Value"); } j = Lib.FindFormFieldByTitle("ZmlsZTovLy9DfC9UMS5odG0A.PDS_CHECKBOX_CHECKONE_YAPI_8f1048c4b8754ba9bd4a77b9f9bf5f01"); if (j > 0) { int ret = Lib.SetFormFieldValue(j, "Yes"); } Lib.SaveToFile("T1.pdf"); Edited by alecd4 - 01 Oct 11 at 12:00AM |
|
AndrewC
Moderator Group Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
|
By the looks of the form field name you are using an XFA forms based PDF. I believe we need to do some more work in QPL to get XFA checkboxes working correctly.
Andrew.
|
|
alecd4
Beginner Joined: 29 Sep 11 Status: Offline Points: 10 |
Post Options
Thanks(0)
|
The form was generated by Acrobat X PRO from an HTML form. I email this form to support - case# 8911
|
|
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