Downloading a document as a PDF requires the query parameter
jwt. It must be a valid JSON Web Token (JWT) with a
permissions set to
["download"] and an optional
original: <boolean> property. This allows you to have fine-grained control over the generated PDF. The server will not look at the URL parameters for this endpoint.
This endpoint respects collaboration permissions if any are defined in the JWT:
By default, this endpoint returns the document as a PDF with all of the annotations saved into it. If you include
original: true in the JWT, the PDF that was originally uploaded for the document will be returned unmodified.
You can use this link to offer a download button for a document:
<a href="https://example.com/documents/abc/pdf?jwt=<jwt>" download target="_blank" > Click here to download. </a>