Skip to content
Navigation

Split a PDF into one file per page

Splits a PDF into single-page PDFs, one new file per page, named <original>.p<n>.pdf.

Each page carries parentFileId pointing back at the source, so the set stays traceable to one document.

A PDF longer than 100 pages answers 413 too_many_pages — extract the pages you need one at a time instead. A PDF larger than 15 MB answers 413 too_large.

Learn more: Working with files

POST
https://api.cloudraker.com/v1/files/{ref}/split/pages
Try it
Path parameters
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

Returns

201

One file per page, in page order.

JSON
  • object
    string
    required
  • data
    array of
    object
    required
    • 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.

413

More than 100 pages (too_many_pages), or larger than 15 MB (too_large).

422

The file is not a PDF.

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