/// 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

RELATED TOOLS