Locked PDF?
Friday, July 29, 2022 at 04:47pmOur imaging team is complaining about the OneSpan documents that they are receiving:
"Is there any way to disable the secure feature of Saleforce’s e-Signed documents?
We have been experiencing an uptick in issues with PDFs being rejected. Our investigation found that end users are using OneSpan e-sign capabilities via Salesforce to get the documents signed. When the documents are attached they come in as secured documents which cannot be uploaded because they fail our validation check."
Have you seen similar issues before? What options do we have with the Apex SDK? I see posts elsewhere about downloading the flattened version of the PDF. Does the SDK support that?
Reply to: Locked PDF?
Friday, July 29, 2022 at 06:31pmHi Peter,
If you want to download the flattened document, you can refer to the .downloadOriginalDocument() function in this sample code:
https://community.onespan.com/documentation/onespan-sign/codeshare/retrieve-documents-apex-sdk
And simply use the below URL instead:
String resourceUrl = '/packages/' + packageId + '/documents/' + documentId + '/pdf?flatten=true';
Duo
Reply to: Locked PDF?
Monday, August 1, 2022 at 08:50amThank you! For the locked version, is there a method to unlock the document? Do you need a third party tool to brute force unlock it? I am seeing some references to iTextSharp. Is that still a valid approach?
Reply to: Locked PDF?
Monday, August 1, 2022 at 09:20amHi Peter,
This is the security tab of an E-signed document by OSS. The PDF has been securely signed and digitally sealed with a tamper-evident seal. If you meant to unsecure the document, this will break the seal. Typically, you can use a third part tool to brute force unlock the PDF or directly download the flattened version.
Duo
Reply to: Locked PDF?
Monday, August 1, 2022 at 09:41amExcellent. Thank you, Duo. Clearly I have catching up to do in this area.