We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

PDF File with Signature

Hi Aspose,

I am using Aspose.Pdf version I am trying to insert a pdf pages on another pdf using following code

pdfDocument.Pages.Insert(item.InsertAtPage, item.Document.Pages);

but one of the page of item.Document.Pages (which is pdf document pages) has embedded signature on it, which throws an exception:

Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object.

If pdf file does not have embedded signature, it works fine. Can you please help me how to resolve this problem?


Yasser Ahsan

Hello Yasser,

Thanks for contacting support.

I have tested the similar scenario in our environment and was unable to notice the exception which you have shared. I have used latest version of Aspose.Pdf for .NET which is 17.5 and following code snippet.

Document doc = new Document(dataDir + “input.pdf”);
Document doc2 = new Document();

Please note that it is strongly recommended to use latest version of the API as it contains all fixes and enhancement. You may download Aspose.Pdf for .NET 17.5 from our website and in case if you still face any issue, please share your input document, so that we can test scenario in our environment and address it accordingly.

Best Regards,