Failed to save document after setting password to it

New Here ,
Jan 23, 2020

Copy link to clipboard

Copied

 We're using PDDocCopyToFile(pDoc,&params) in our custom C++ plug-in and it works fine. But if the user opens non protected document, then in Adobe Acrobat settings sets password to the document and then presses our "save command button", it fails in our call to PDDocCopyToFile API method.
 Alternatively, we tried params.saveChanges = false and just PDDocSave, but with these either changes were gone or password protection was lost. 

 Should we specify any extra parameters to use PDDocCopyToFile with password protected files? Or how we should proceed further, if the user sets password for the current opened document, to save it afterwords prorgamatically and do not lose the changes? We couldn't find anything related in API documentation. Any suggestions are higly appricieated.

 

TOPICS
Acrobat SDK and JavaScript, General troubleshooting

Views

16

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Failed to save document after setting password to it

New Here ,
Jan 23, 2020

Copy link to clipboard

Copied

 We're using PDDocCopyToFile(pDoc,&params) in our custom C++ plug-in and it works fine. But if the user opens non protected document, then in Adobe Acrobat settings sets password to the document and then presses our "save command button", it fails in our call to PDDocCopyToFile API method.
 Alternatively, we tried params.saveChanges = false and just PDDocSave, but with these either changes were gone or password protection was lost. 

 Should we specify any extra parameters to use PDDocCopyToFile with password protected files? Or how we should proceed further, if the user sets password for the current opened document, to save it afterwords prorgamatically and do not lose the changes? We couldn't find anything related in API documentation. Any suggestions are higly appricieated.

 

TOPICS
Acrobat SDK and JavaScript, General troubleshooting

Views

17

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jan 23, 2020 0

Have something to add?

Join the conversation