pdftract/crates/pdftract-cli/src
jedarden 50946fc98c feat(pdftract-4my): implement serve mode integration for full-render feature
This commit completes Phase 5.2.2 by integrating the pdfium-render path
into serve mode with runtime validation and feature propagation.

Changes:
- Propagate ocr and full-render features from CLI to pdftract-core
- Add full_render parameter to serve mode ExtractParams
- Implement runtime validation in build_options():
  * Returns BadRequest if full_render requested but PDFium unavailable
  * Falls back to direct compositing if feature not compiled
- Update all three serve handlers to handle Result from build_options()

Acceptance Criteria:
 cargo build --features ocr,serve,full-render succeeds
 cargo build --features ocr,serve (no full-render) succeeds
 Runtime fallback: full_render=true with feature absent uses direct path

Notes:
- Binary size CI gate (140 MB) requires separate CI infrastructure
- Soft-mask regression tests require separate fixture work

Refs: pdftract-4my
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-23 16:28:08 -04:00
..
doctor feat(pdftract-4sky1): implement doctor exit code policy 2026-05-23 07:27:09 -04:00
mcp feat(pdftract-39g4j): implement --receipts CLI flag + ExtractionOptions threading 2026-05-23 04:27:36 -04:00
cache_cmd.rs feat(pdftract-2i6rt): implement cache CLI subcommand and HTTP integration 2026-05-23 06:33:43 -04:00
codegen.rs fix(pdftract-2hm4): fix keyword lexer to use Vec<u8> and improve diagnostics 2026-05-18 02:11:40 -04:00
lib.rs feat(pdftract-1rami): implement MCP tool catalog with 10 tools 2026-05-23 02:12:41 -04:00
main.rs feat(pdftract-4sky1): implement doctor exit code policy 2026-05-23 07:27:09 -04:00
password.rs fix(pdftract-2a6rk): fix xref.rs u64 literal overflow in proptest 2026-05-22 17:26:27 -04:00
serve.rs feat(pdftract-4my): implement serve mode integration for full-render feature 2026-05-23 16:28:08 -04:00
verify_receipt.rs feat(pdftract-36wlt): implement verify-receipt subcommand + verifier protocol 2026-05-23 04:00:15 -04:00