How to sign a PDF document

Posted by: ashokhurkat on 19 December 2019, 7:18 pm EST

  • Posted 19 December 2019, 7:18 pm EST

    Dear Support
    I have created a PDF document with help of c1 report and pdf object.
    Now i want to sign it with a predefined digital signature which is stored in .pfx file.
    can you help how can i achieve above
  • Marked as Answer

    Replied 22 December 2019, 6:05 pm EST

    Hello,

    C1PdfDocument API allows you to add signatures to a PDF generated through the same API. As you are exporting a C1Report to PDF and using the same for signature, I would suggest you to first load the C1Report to C1PrintDocument instance, as follows:
    C1PrintDocument doc = new C1PrintDocument();
    doc.ImportC1Report("NWind.xml", "Alphabetical List of Products");


    Then, use the steps mentioned in the following blog post where the C1PrintDocument pages are added to C1PdfDocument as metafiles and further, the "PdfSignature" field is added:
    https://www.grapecity.com/blogs/export-c1printdocument-to-pdf-with-digital-signature

    For other ComponentOne WinForms related queries, please create a case on this forum: https://www.grapecity.com/forums/winforms-edition
    Note: https://www.grapecity.com/forums/c1-studio/c1report-is-now-obsolete-t

    Thanks,
    Esha
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels