Skip to main content
GET
/
documents
/
{documentId}
/
preview
/
pdf
Python SDK
client.documents.previews.download_document_as_pdf("previews", id=123)
content = client.documents.previews.download_document_as_pdf_bytes(id=123)
"<string>"

Authorizations

Authorization
string
header
required

Access token issued by the CDF project's configured identity provider. Access token must be an OpenID Connect token, and the project must be configured to accept OpenID Connect tokens. Use a header key of 'Authorization' with a value of 'Bearer $accesstoken'. The token can be obtained through any flow supported by the identity provider.

Headers

cdf-version
string

cdf version header. Use this to specify the requested CDF release.

Example:

"alpha"

Path Parameters

documentId
integer
required

Internal ID for document to preview

Response

OK

Rendered PDF document

Last modified on April 23, 2026