Hello everyone,
I was trying to extract signature information following the documentation example from PDF and got this error:
Unhandled Exception: System.NullReferenceException: Object reference not set to
an instance of an object.
at Aspose.Pdf.InteractiveFeatures.Forms.SignatureField…ctor(♥♫‼ , Document )
at Aspose.Pdf.InteractiveFeatures.Forms.Field.??¶(♥♫‼ , Document )
at Aspose.Pdf.InteractiveFeatures.Forms.Form.☼.?♦‼.get_Current()
at ConsoleApplication4.Program.Main(String[] args)
This error occurs on the line:
foreach (Field field in pdfDocument.Form ) {…}
I’m using 11.0.0.0 version of Aspose PDF also attaching PDF example document where nullpointer exception occurs.