Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies within .NET ( C#, VB.NET, ASP.NET, .NET Core) application and Java (J2SE and J2EE) application.

Mon Jan 21, 2013 9:48 am

I need to sign the existing PDF document.
In Help is written about class PdfDocumentBase this: "Represent common properties of PdfNewDocument and PdfLoadedDocument classes."
But Class PdfLoadedDocument doesn't exist in any assembly.

Posts: 1
Joined: Thu Jan 17, 2013 11:13 am

Tue Jan 22, 2013 3:37 am


Thanks for your inquiry.
Class PdfDocument can load a exsiting pdf document, but there is no constructor of class PdfSignature can support directly class PdfDocument at present. We are sorry for that. We will add new constructor to support class PdfDocument in the future. Please try the solution below to solve signature problem now. If the solution don't solve your problem after testing, please tell us.
Code: Select all
           PdfDocument doc = new PdfDocument();
            PdfCertificate cert = new PdfCertificate(@"..\..\Demo.pfx", "e-iceblue");

            foreach (PdfPageBase page in doc.Pages)
                PdfSignature signature = new PdfSignature(page.Document, page, cert, "demo");
                signature.ContactInfo = "Harry Hu";
                signature.Certificated = true;
                signature.DocumentPermissions = PdfCertificationFlags.AllowFormFill;


Best regards,
E-iceblue support team
You do not have the required permissions to view the files attached to this post.
User avatar

Posts: 2444
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.PDF