Documents

Extract Document Pages

Extract specific pages from a document (PDF or PowerPoint) as base64-encoded images.

Args: request: Request containing document_id, start_page, and end_page auth: Authentication context

Returns: DocumentPagesResponse: Base64-encoded images of the requested pages

post/documents/pages

Headers

authorizationstring

Request body

document_idstring required

ID of the document to extract pages from

start_pageinteger required

Starting page number (1-indexed)

end_pageinteger required

Ending page number (1-indexed)

Response

Successful Response

document_idstring required
pagesstring[] required
start_pageinteger required
end_pageinteger required
total_pagesinteger required

Changes