Skip to content
Navigation

Render a PDF page to an image

Renders one page of a PDF as a PNG and stores it as a new file.

{ "page": 1, "scale": 2 }

page is 1-based and defaults to the first page. scale runs from 0.1 to 6 and defaults to 2; the long edge is capped at 4000 pixels whatever you ask for.

Only a PDF can be rendered — convert first with convert/pdf.

Learn more: Working with files

POST
https://api.cloudraker.com/v1/files/{ref}/convert/image
Try it
Path parameters
Request body
Live API request

This request can change data or incur charges for the selected organization.

Authorization

  • bearerAuth
    HTTP
    required

Path parameters

  • ref
    string
    required
    minLength: 1

Request body JSON required

  • page
    optional
    integer
    maximum: 9007199254740991 · minimum: 1
  • scale
    optional
    number
    maximum: 6 · minimum: 0.1

Returns

201

The rendered image.

JSON
  • object
    string
    required
  • id
    string
    required
  • name
    string
    required
  • mimeType
    string
    required
  • status
    uploading
    or
    processing
    or
    ready
    or
    failed
    required
  • createdAt
    string
    required
  • parentFileId
    optional
    string
  • metadata
    optional
    map of
    string
  • error
    optional
    string
  • uploadUrl
    optional
    string
  • uploadExpiresAt
    optional
    string
  • urls
    optional
    object
    • content
      optional
      string
    • markdown
      optional
      string
    • json
      optional
      string

400

Validation Error
JSON
  • success
    false
    required
  • error
    array of
    unknown
    required
  • data
    unknown
    required

404

Unknown file.

422

The file is not a PDF, or the page does not exist.

429

Rate limited. The /v1 API allows at least 67 requests per minute per organization (about 1,000 requests per 15 minutes) — a guaranteed floor, enforced per edge location, so a geographically spread caller may get more. Wait for the Retry-After interval and retry — the error is retryable.
JSON
  • code
    rate_limited
    required
  • message
    string
    required
  • retryable
    true
    required
  • requestId
    string
    required
  • docUrl
    optional
    string

Type to search…

↑↓ navigate↵ selectEsc close