I am trying to download the signed document from EchoSign using my c#. Api Method: GET /agreements/{agreementId}/combinedDocument
I am able to get the file stream in response but after saving it my local drive when I am trying to open the saved PDF it is prompting for Password. I am using below c# code to save the file stream to my local drive
string stream = adobeObject.DownloadAgreementDocument(agreementId);
byte[] bytes = Encoding.UTF8.GetBytes(stream);
System.IO.File.WriteAllBytes(@"C:\Agreement.pdf", bytes);
I am not sure why it is protected.