I'm using Aspose PDF to read a PDF, some fields have Format restrictions (ie. The format is set as Number, then no chars can be inputted into the field). However; when I'm trying to fill a field using Aspose PDF, is there any way let Aspose check a field's format before it enters the value?
Aspose.Pdf.Facades.Form form = new Aspose.Pdf.Facades.Form(AppDomain.CurrentDomain.BaseDirectory + "test.pdf");
try
{
form.FillField("percentage_Textbox", "testing");
}
catch (Exception)
{
// This never triggers
Console.WriteLine("Error");
throw;
}
form.Save(AppDomain.CurrentDomain.BaseDirectory + "test(output).pdf");
This is the code I'm using. What I'm expecting is when it's filling this field, it will result an error, since this field's format in Acrobat is set as a number field.