JavaScript
Documents
Extract Document Pages
Extract specific pages from a document (PDF, PowerPoint, or Word) as base64-encoded images or URLs. When output_format=“url”, pages that fail URL generation fall back to base64 data URIs (mixed output possible).
POST
JavaScript
Headers
Body
application/json
Request model for extracting pages from a document
ID of the document to extract pages from
Starting page number (1-indexed)
Required range:
x >= 1Ending page number (1-indexed)
Required range:
x >= 1How to return page images: base64 (default) or url
Available options:
base64, url 
