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 - Update checkbox field
  FAQ FAQ  Forum Search   Register Register  Login Login

Update checkbox field

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


Joined: 29 Sep 11
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote alecd4 Quote  Post ReplyReply Direct Link To This Post Topic: Update checkbox field
    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
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: 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.
Back to Top
alecd4 View Drop Down
Beginner
Beginner


Joined: 29 Sep 11
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote alecd4 Quote  Post ReplyReply Direct Link To This Post 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
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