Import comments file to signed document

PDF-XChange Editor SDK for Developers

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

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.
Post Reply
lidds
User
Posts: 510
Joined: Sat May 16, 2009 1:55 pm

Import comments file to signed document

Post by lidds »

I have an application that allows users to create annotations on a document and then these annots are exported to fdf files, therefore no annots are saved to the document. This allows users to turn on and off various annots from different departments. This all works fine.

The problem I am facing is that if they digitally sign a document in my application using the SDK and standard PDFXchange functionality, they are then unable to import annots as it displays the following error:

Exception from HRESULT: 0x82191006 Error [PXVLib]: No permissions for this operation.

I understand why this is happening as the document has been digitally signed and therefore no changes should be able to be made to the document after signing. However, I was wondering if there is a way around this as I want the user who is going to digitally sign the document to be able to load previous annots to ensure they have been incorporated prior to signing.

Any help would be really appreciated.

Thanks

Simon
User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 2352
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: Import comments file to signed document

Post by Vasyl-Tracker Dev Team »

Hi lidds.

In 'Add Digital Signature' operation you need to setup the "DocMDP" param. Put there 3 value:

DocMDP:
1 = "No Changes Allowed"
2 = "Allow Form Filling, Document Signing and the Creation of Page Templates"
3 = "Allow Form Filling, Document Signing, Commenting and the Creation of Page Templates"

HTH.
Vasyl Yaremyn
Tracker Software Products
Project Developer

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Post Reply