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

Free Support Forum - aspose.com

Pages.Add() Error

We are getting an error when we divide a encrypted pdf file into a each page then merge them as one pdf file.

var pdfDocAttach = new Aspose.Pdf.Document();
var pdfDocAttachTemp = new Aspose.Pdf.Document(pdfStreamAttach);
pdfDocAttach.Pages.Add(pdfDocAttachTemp.Pages[1]); -> Error Excception

errorMessage :
Invalid signature object.

StackTrace :

at
.[1]([1] [1])
at Aspose.Pdf.Forms.SignatureField…ctor(
[1], Document


)
at Aspose.Pdf.Forms.Field.[1](
[1], Document


)
at Aspose.Pdf.PageCollection.[1](Page [1])
at Aspose.Pdf.PageCollection.[1](Page [1],



)
at Aspose.Pdf.PageCollection.Add(Page entity)

Help!

@sdc1004,

Kindly send us your source PDF document. We will investigate and share our findings with you.