Implement the --receipts CLI flag accepting "off" | "lite" | "svg" with default "off". Thread the ExtractionOptions.receipts field through the extraction pipeline so that receipts are generated for spans and blocks based on the selected mode. Changes: - CLI: Added --receipts flag with clap value_parser for runtime validation - CLI: Added feature check for SVG mode (requires 'receipts' feature) - MCP tools: Added receipts field to ExtractArgs, ExtractTextArgs, ExtractMarkdownArgs - MCP tools: Added build_extraction_options() to parse receipts mode - Core: Added extract.rs module with extract_pdf(), extract_page(), generate_receipt() - Core: Added ExtractionOptions with ReceiptsMode enum (Off/Lite/SvgClip) - Core: Added receipts feature flag to Cargo.toml Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| tests | ||
| Cargo.toml | ||
| pdftract-cli.cdx.json | ||