PDF Form textbox value repeated

Hi,

I have a problem with with PDF Form File.

My file template is 1215v01Orig.pdf and the file result is 1215v01Orig.result.pdf

In the file result the values are repeated for the three columns, I' dont know where is the problem, but the true value is in the TextBox, however the display value is different.

I have to click on the textbox for to see the true value

My Code in VB.Net in VS2010, Aspose version 8.2

dim _strCheminFichPDFForm as string="1215v01Orig.pdf"

Dim objForm = New Aspose.Pdf.Facades.Form(_strCheminFichPDFForm)
For i As Integer = 0 To 14
Dim strFieldName = String.Format("CodActivGauch.{0}", i)
Dim strFieldValue = String.Format("00000{0}", i)
objForm.FillField(strFieldName, strFieldValue)

strFieldName = String.Format("CodActivDroit.{0}", i)
strFieldValue = String.Format("20000{0}", i)
objForm.FillField(strFieldName, strFieldValue)

strFieldName = String.Format("CodActivCtre.{0}", i)
strFieldValue = String.Format("10000{0}", i)
objForm.FillField(strFieldName, strFieldValue)
Next

objForm.Save(Path.ChangeExtension(_strCheminFichPDFForm, ".result.pdf"))

Thank you

Juan Echevarria

RĂ©gie de l'assurance Maladie

RAMQ

Hi Juan,


Thanks for your inquiry. It seems custom formatting of the subjected columns is causing the issue. I have removed custom formatting of last column and fill the form, it is working fine. Please find attached document for reference.

Please feel free to contact us for any further assistance.

Best Regards,

Thank you,

It's possible to remove custom formatting automaticaly,

I tried to used the method PdfJavaScriptStripper.Strip, for to remove custom formatting script(1215v01Orig.new.pdf), but the result is the same,in other words the values are repeated(1215v01Orig.result.pdf).

Thank you

Juan Echevarria

Hi Juan,


Thanks for your feedback. After initial investigation we have logged an enhancement ticket PDFNEWNET-37660 in our issue tracking system to remove custom formatting of Form field using API. We will keep you updated about the issue resolution progress via this forum thread.

We are sorry for the inconvenience caused.

Best Regards,