Checkbox tick

Hi there,


We have recently been trying Aspose PDF 6.9 and it has been good.
I am trying to add a checkbox field and tick it then flatten the field.
I have noticed that if you set the buttonstyle to a check you only get a black square
The code below is just a test case to add a checkbox to a pdf and trying to check it in Adobe reader. I have also attached the resultant pdf.

var f = new FormEditor(@“c:\Test\Doc3.pdf”, @“c:\Test\Test Result.pdf”);

f.Facade.ButtonStyle = FormFieldFacade.CheckBoxStyleCheck;
f.AddField(Aspose.Pdf.Facades.FieldType.CheckBox, “blah”, 1, 0, 100, 16, 116);
f.Save();

Cheers

Mike

Hello Mike,


Thanks for contacting support.

I
have tested the scenario and I am able to reproduce the same problem. For the
sake of correction, I have logged it in our issue tracking system as
PDFNEWNET-33681. We will investigate this
issue in details and will keep you updated on the status of a correction.

We apologize for your inconvenience.

Hi Mike,


Adding more to my previous comments, I am afraid I am unable to notice any CheckBox in the output PDF that you have already shared. Can you please share that either you were able to see the CheckBox field in the resultant PDF file or it’s not appearing at all.

Hi,

Sorry - I have attached a more visible checkbox - the pdf coordinates of the checkbox are 100,700

The code used now is

var = new FormEditor(@"c:\Test\Doc3.pdf", @"c:\Test\Test Result.pdf");

f.Facade.ButtonStyle = FormFieldFacade.CheckBoxStyleCheck;

f.Facade.BorderStyle = FormFieldFacade.BorderStyleSolid;

f.Facade.BorderWidth = FormFieldFacade.BorderWidthThin;

f.Facade.BorderColor = Color.Blue;

f.AddField(Aspose.Pdf.Facades.FieldType.CheckBox, "blah", 1, 100, 700, 116, 716);

f.Save();

Cheers

Mike

Hello Mike,


Thanks for sharing the code snippet and sample PDF file.

I have tested the scenario with Aspose.Pdf for .NET 6.9.0 and I am able to reproduce the same problem that Square is appearing when selecting the checkbox. However during my testing with our upcoming release version of Aspose.Pdf for .NET 7.0.0, the problem seems to be resolved. Please take a look over the attached Test+Result-Updated.pdf file which I have generated using new release version. Please take a look over the Red CheckBox present below the Blue one.

The new version is under testing and once it becomes available, we would be more than happy to update you with the status of correction. Please be patient and wait for the new release. We are sorry for your inconvenience.

Thank you, we look forward to the new release.

Hello Mike,


Thanks for your patience.

I am please to share that the new release version of Aspose.Pdf for .NET 7.0.0 has become available. Please try using the latest release version and in case you encounter the similar problem or you have any further query, please feel free to contact. We are sorry for your inconvenience.

The issues you have found earlier (filed as PDFNEWNET-33681) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.