feat: Add configurable ProcessMode (detect-only / analyze / full)

Introduces a ProcessMode enum that controls how far the PDF pipeline
runs, enabling fast document triage without paying extraction or
markdown conversion costs. Exposed via --detect-only and --analyze
flags in both pdf2md and detect-pdf CLIs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Abimael Martell
2026-02-19 10:06:30 -08:00
co-authored by Claude Opus 4.6
parent e62444fee0
commit 7a5af1e9c3
8 changed files with 317 additions and 96 deletions
+1
View File
@@ -267,6 +267,7 @@ fn test_markdown_options_custom() {
include_images: false,
include_links: false,
include_page_numbers: false,
..Default::default()
};
assert!(!opts.detect_headers);
assert!(opts.detect_lists);