abhijit_davray

Download document in PDF format

0 votes
Hi, Please help me with the following: I am using REST API, .NET and a sandbox account. I want to download a document in PDF format. For this I can use the call: GET /packages/{packageId}/documents/{documentId}/pdf But this call requires documentId. And I only have PackageId. Is there a way to download a particular document if you only have a PackageId (this is supported for zip). I tried the below call but did not understand which is the DocumentId (if at all it is returning one). GET /api/packages/{packageId} Thanks Abhijit

Approved Answer

Reply to: Download document in PDF format

0 votes
Hey Abhijit, The easiest way would be to give your documents IDs that you know when you're creating the package. You would just need to specify the id property in your JSON payload on upload of the document. Otherwise, you just need to use a JSON parser like the Newtonsoft library that is packed with the .NET SDK and get the documents object and step through to find your document and its ID. Hope this helps. Let me know if you have questions.

- Michael

Director, Partner and Developer Technologies, OneSpan

Facebook - Twitter - LinkedIn


Reply to: Download document in PDF format

0 votes
Thanks for the quick reply. I will try this and let you know. Thanks Abhijit

Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off