/// EDIT
3 credits

Split PDF by Type API — auto-sort a mixed PDF into separate documents

Feed in one scanned batch of mixed document types; get back one file per document, correctly grouped.

/// Quick answer

Split by Type classifies every page against your label set (the same labeling used by pdf-classify), then groups contiguous pages that share a label into one output document — a continuation heuristic keeps a low-confidence page attached to its neighbor's label rather than starting a spurious new document over one uncertain page. The response is a ZIP of one file per detected document plus a manifest listing each output's label, page range and confidence; a batch over 20 pages runs asynchronously and is polled like any other async job.

Try Split PDF by Type API — free →Read the docs

Free account. No card required.

How does the Split PDF by Type API work?

One HTTP request from any language. Every ASHDOCS endpoint uses the same X-API-Key header.

curl -X POST https://www.ashdocs.com/api/v2/tools/pdf-split-by-type \
  -H "X-API-Key: ash_live_..." \
  -F "file=@batch.pdf" \
  -F 'options={"labels":[{"name":"invoice","description":"A bill for goods or services"},{"name":"contract","description":"A signed agreement between parties"}]}'

Common use cases

Frequently asked questions

What does Split PDF by Type return?+

One PDF per detected document, as separate files by default or as one ZIP with output: "zip". The response lists each file's label and pages.

What if one page is hard to classify?+

A page classified with low confidence whose text closely matches the page before it takes that page's label, so one unclear page doesn't start a new document.

How are large batches handled?+

A batch over 20 pages runs asynchronously; poll the job like any other async job. Each run costs 3 credits with a live key.

RELATED TOOLS