• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Download combinedDocument comes back password protected

New Here ,
Sep 12, 2020 Sep 12, 2020

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.

TOPICS
SDK

Views

443

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
community guidelines
Explorer ,
Dec 22, 2020 Dec 22, 2020

Copy link to clipboard

Copied

Hello. Is there any additional information on this topic?

Votes

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
community guidelines
Community Beginner ,
Apr 28, 2023 Apr 28, 2023

Copy link to clipboard

Copied

LATEST

Hello.

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

I solved my problem this way.

Votes

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
community guidelines