Checkbox field types don't always get checked in PDF

I am having an issue consistently checking checkbox fields. Sometimes they work fine and other times they don’t. Enclosed is a PDF form (New Account Application.pdf) that has a number of other fields, but I key in on a set of checkboxes to check them all and the end result is that most are checked, some are not and I cannot figure out why. Also enclosed is the resulting output PDF file (New Account Application_OUTPUT_BAD.pdf). On page 2, the Net Worth and Estimated Liquid Assets sections of the FINANCIAL INFORMATION areas are supposed to all be checked.


Below is some sample code - we are using .Net PDF version 7.6.0.0. Would appreciate any explanation of what I may be doing wrong in either the setup of the form fields in the PDF or in my code. If there is a bug in the Aspose.Net PDF library, would appreciate a fix for this.

Regards,
Rob Cyrier

Code below is a .Net Console App.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;

namespace AsposeCheckboxTest
{
class Program
{
static void Main(string[] args)
{
Aspose.Pdf.License license = new Aspose.Pdf.License();
license.SetLicense(“Aspose.Total.lic”);

Aspose.Pdf.Document doc = new Aspose.Pdf.Document(@“C:\Impact\Code\LocalCode\AsposeCheckboxTest\New Account Application.pdf”);
Aspose.Pdf.Facades.Form fform = new Aspose.Pdf.Facades.Form(doc);
LoadField(doc, fform, “Networth_1”);
LoadField(doc, fform, “Networth_2”);
LoadField(doc, fform, “Networth_3”);
LoadField(doc, fform, “Networth_4”);
LoadField(doc, fform, “Networth_5”);
LoadField(doc, fform, “Networth_6”);
LoadField(doc, fform, “Networth_7”);
LoadField(doc, fform, “Liquid_Assets_1”);
LoadField(doc, fform, “Liquid_Assets_2”);
LoadField(doc, fform, “Liquid_Assets_3”);
LoadField(doc, fform, “Liquid_Assets_4”);
LoadField(doc, fform, “Liquid_Assets_5”);
LoadField(doc, fform, “Liquid_Assets_6”);
LoadField(doc, fform, “Liquid_Assets_7”);
LoadField(doc, fform, “Liquid_Assets_8”);
doc.Save(@“C:\Impact\Code\LocalCode\AsposeCheckboxTest\New Account Application_OUTPUT_BAD.pdf”);
}

private static void LoadField(Aspose.Pdf.Document doc, Aspose.Pdf.Facades.Form form, string formFieldName)
{

Aspose.Pdf.InteractiveFeatures.Forms.Field interactiveField;
try
{
interactiveField = (Aspose.Pdf.InteractiveFeatures.Forms.Field)doc.Form[formFieldName];
}
catch
{
return;
}

// set a text box
if (interactiveField != null)
{
if (form.GetFieldType(formFieldName) == Aspose.Pdf.Facades.FieldType.CheckBox)
{
#region check box

form.FillField(formFieldName, true);
#endregion
}
}
}
}
}



Hi Rob,


Thanks
for using our API’s.
<o:p></o:p>

I
have tested the scenario and I am able to notice the same problem. For the sake
of correction, I have logged this problem as PDFNEWNET-37344 in
our issue tracking system. We will further look into the details of this
problem and will keep you updated on the status of correction. Please be
patient and spare us little time. We are sorry for this inconvenience.

Thanks for the reply. Do you have an ETA on when this will be looked at by someone and a possible fix that we can download? I know those are two separate questions, but I need to give our client a timeframe of when we can expect to have this issue resolved for them.


Best Regards,
Rob

Hi Rob,


As we
recently have been able to notice this issue, so development team requires
little time to investigate and figure out the reasons of this problem.
Nevertheless, as soon as we have made some definite progress towards
its resolution, we would be more than happy to update you with the status of
correction.
<o:p></o:p>

My humble request is to please be patient and spare us little time.

Any update on this issue and when a fix will be incorporated into a release?


Thanks,
Rob

Hi Rob,


Thanks for your inquiry. I am afraid your issue is still pending for investigation due to other priority issues. However, we have requested our development team to complete the investigation at their earliest and share an ETA. We will update you as soon as we get a feedback.

Thanks for your patience and cooperation.

Best Regards,

The issues you have found earlier (filed as PDFNEWNET-37344) have been fixed in Aspose.Pdf for .NET 9.9.0.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.