Skip to main content
Participant
Sep 13, 2020 5:17 AM UTC
Question

Download combinedDocument comes back password protected

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.

This topic is closed to new replies. Start a new post to keep the conversation going.

2 replies

Known Participant
Dec 22, 2020 5:11 PM UTC

Hello. Is there any additional information on this topic?

Translate
Inspiring
Apr 28, 2023 11:53 AM UTC

Hello.

add 'Accept': 'application/pdf;encoding=base64' to header and Convert base64 encoding to PDF with blob.

I solved my problem this way.

Translate