Smart document split (sypht.split)
Add automatic document splitting to workflows.
Split workflows are a BETA
feature and subject to change.
This guide is under-construction.
How it works
In cases where a single PDF file contains multiple underlying documents, smart-split allows for the automatic detection and segmentation of sub-documents. Even in cases where sub-documents have variable lengths and format.
When a source file is uploaded, it is processed and a corresponding fileId
is assigned. The /results/
for the original file will then contain one or more child document fileIds
which can be processed futher with the sypht.validate
or sypht.extract
workflows.
Getting started
After uploading, invoke the sypht.split workflow
1. Invoke split workflow
POST /workflows/sypht.split/jobs
Request body:
Response:
2. Collect the split results
GET https://api.sypht.com/result/final/00000000-0000-0000-0000-000000000000
3. Invoke workflows on each child document
POST /workflows/sypht.extract/jobs
4. Fetch results for child documents
GET /result/final/aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa
GET /result/final/bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb
Limitations, Errors and Recommendations
Uploading a document via the v2 upload endpoint avoids any of the downstream errors encountered with the v1 endpoint approach by enfocing page limits on all documents. The default limit is 16 pages but this can be increased by request.
Last updated