Perception
Split
nace split https://example.com/packet.pdf \
--class invoice:Invoice:"A supplier invoice" \
--class receipt:Receipt:"A payment receipt"| Flag | What it does |
|---|---|
--class ID:LABEL[:DESCRIPTION] | One class. Repeatable. It's split at the first two colons, so a description may contain colons but an id or a label can't. |
--classes JSON | Classes as a JSON array: inline, @FILE, a path, or -. Its entries come before any --class. |
At least one --class or --classes is required, or classes in --options. Class fields beyond id, label and description go in --classes. With --json, check result.warnings when the job has warnings and result.segments[].warnings for warnings about specific segments.
Existing class files can still send the deprecated instance_key object. For example, add "instance_key": {"name": "invoice_number", "description": "Invoice number", "required": false} to an invoice class. Use strings for name and description and a JSON boolean for the optional required field. See Split.
Split options
nace split also takes:
| Flag | What it does |
|---|---|
--unknown {include,force,error} | How Split handles segments it leaves without a class. Split can pick a class that seems unrelated, so error can still succeed. Sent as unknown_policy. Default include. See Unknown pages. |
--include-content | Include available segment Markdown in content by sending output.include_content: true. Workbook segments can have null content. |