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


    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:

    For other ComponentOne WinForms related queries, please create a case on this forum:

Need extra support?

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

Learn More

Forum Channels