How to sign a pdf document with PDF-XChange Editor SDK

PDF-XChange Editor SDK for Developers

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
abt
User
Posts: 1
Joined: Wed Jul 09, 2025 8:28 pm

How to sign a pdf document with PDF-XChange Editor SDK

Post by abt »

My objective is to digitally sign a generated document.
I came across the operation op.document.addDigitalSignature in the documentation and intend to use the IOperation interface’s Do() method to pass the file, the certificate data and any needed data. Could you please confirm if this is the recommended approach for programmatically adding a digital signature?
Additionally, I’d like to display some information within the signed PDF, such as signature metadata, using an annotation or stamp. Is there a recommended way to programmatically add such visual elements to the document through the SDK? If it is possible, how to position this element in the document?
I’ve searched through the SDK documentation and forums but haven’t found a working example, so any clarification or reference would be highly helpful.
Thank you very much for your assistance.