Print Page | Close Window

Update checkbox field

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=1980
Printed Date: 25 Sep 25 at 11:54AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Update checkbox field
Posted By: alecd4
Subject: Update checkbox field
Date 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");




Replies:
Posted By: AndrewC
Date Posted: 03 Oct 11 at 5:31AM
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.


Posted By: alecd4
Date Posted: 03 Oct 11 at 6:04PM
The form was generated by Acrobat X PRO from an HTML form. I email this form to support - case# 8911



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