Preview

Preview multiple PDF pages (file upload)

Upload a PDF and get multiple pages as Base64-encoded images in a JSON response. Specify pages as: 'all', '1', '1-3', '1,3,5', or '1-3,7'. Maximum 50 pages per request.

post/api/preview/pages

Request

  • Base URL: https://api.dokmatiq.com
  • URL: https://api.dokmatiq.com/api/preview/pages
  • Auth: API key in header X-API-Key

Query parameters

pagesstring

Page specification: 'all', '1', '1-3', '1,3,5'

formatstring

Image format: PNG or JPEG

dpiinteger

Rendering DPI (default: 72, max: 300)

maxWidthinteger

Max width in pixels (0 = no scaling)

Response

Multi-page preview

Changes

No recorded changes to this operation across all 1 revision of this API.