Copy link to clipboard
Copied
After doing a call to the combinedDocument API
(/api/rest/v6/agreements/{agreementId}/combinedDocument)
the return is a binary stream of the PDF file. So, I save this to a blob and download it.
But, when accessing the file from my hard drive it says:
"This file is password protected. To access it, please enter the password."
However, the file wasn't password protected to begin with, so I do not know the password.
How do I access or how do I save the file without this password?
NOTE: I need to pass this blob to another function, so I can't go the url route as it comes back with a CORS error when attempting to turn it into a blob.
Any help would be most appreciated.
Copy link to clipboard
Copied
Hello. Is there any additional information on this topic?
Copy link to clipboard
Copied
Hello.
add 'Accept': 'application/pdf;encoding=base64' to header and Convert base64 encoding to PDF with blob.
I solved my problem this way.