Skip to content

Render a document page as PNG

GET
/v1/documents/{id}/pages/{n}.png
curl --request GET \
--url http://localhost:8080/v1/documents/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/pages/1.png

Returns page n (1-based) rendered at documents.page_render_dpi; the render is cached beside the original and the response carries Cache-Control: private, max-age=3600. Any staff role or an API key with status:read. 404 for an unknown document, a page outside the document, or a LAR that is not a PDF.

id
required
string format: uuid
n
required
integer format: int32
/^-?(?:0|[1-9]\d*)$/

OK