XML characters on Field.value throw Error on EntityName

Hi,

I’m facing an issue with the function Aspose.Pdf.InteractiveFeatures.Forms.Field.value and XML characters.
If I tri to set the value of a field, I got the error “An error occurred while parsing EntityName”, if any character in these &, ", < and > is found.
I also tried to escape those characters. If I do so, there is no more error, but the value if displayed with the escape characters in the pdf.

I tried a thing like that :
Dim field As Aspose.Pdf.InteractiveFeatures.Forms.Field
field = mpCurrentPdfDocument.Form(“myField”)
field.Value = “test &value” ’ <— this line throw an error

Actually, I’m evaluating your product. Could you give me a way to get throw this issue.

thanks.

Hi Fabien,


Thanks for your interest in our products and sorry for replying so late.

Can you please share the resource file and the complete code snippet so that we can test the scenario at our end. We are sorry for your inconvenience.

Hi,

the error occurs if you execute the following code snipet on the attached file :



Dim field As Aspose.Pdf.InteractiveFeatures.Forms.Field

field = mpCurrentPdfDocument.Form(“SRC_INC-DE_SYMPAPPEL”)

field.Value = “test &value” ’ <— this line throw an error

Hi Fabien,


Thanks for sharing the resource file.

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-34702. We
will investigate this issue in details and will keep you updated on the status
of a correction.

We
apologize for your inconvenience.

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


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