- Sync
- Async
Parameters
document_id(str): ID of the document to extract pages fromstart_page(int): Starting page number (1-indexed)end_page(int): Ending page number (1-indexed)
Returns
DocumentPagesResponse: Object containing extracted pages with metadata
Examples
- Sync
- Async
DocumentPagesResponse Properties
TheDocumentPagesResponse object has the following properties:
document_id(str): ID of the documentpages(List[str]): List of page contents as base64 encoded stringsstart_page(int): Start page number (1-indexed)end_page(int): End page number (1-indexed)total_pages(int): Total number of pages in the document
Notes
- Page numbers are 1-indexed (first page is 1, not 0).
- The
pageslist contains base64 encoded representations of each page. - Useful for extracting specific sections of large documents.

