Skip to main content
Participant
September 13, 2020
Question

Download combinedDocument comes back password protected

  • September 13, 2020
  • 1 reply
  • 764 views

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 has been closed for replies.

1 reply

Known Participant
December 22, 2020

Hello. Is there any additional information on this topic?

Inspiring
April 28, 2023

Hello.

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

I solved my problem this way.