pdftract/tests/object_parser/fixtures/gen_deep_nesting.rs
jedarden 16324878b1 docs(pdftract-1eoo1): Phase 6.4 HTTP Serve Mode coordinator verification note
All child beads closed and acceptance criteria verified:
- POST /extract, /extract/text, /extract/stream endpoints implemented
- GET /health handler returning {status:ok, version:x.y.z}
- HTTP 413 with custom JSON error body
- 8 concurrent requests test (test_concurrent_requests_parallel)
- Feature flag #[cfg(feature = serve)] properly implemented

Phase 6.4 HTTP Serve Mode is complete.
2026-06-01 23:57:05 -04:00

18 lines
471 B
Rust

use std::fs::File;
use std::io::Write;
fn main() {
let mut output = File::create("tests/object_parser/fixtures/deep_nesting.pdf.in").unwrap();
// Create 300 levels of nested dicts
for _ in 0..300 {
write!(output, "<< /A ").unwrap();
}
write!(output, "1").unwrap();
for _ in 0..300 {
write!(output, " >>").unwrap();
}
writeln!(output).unwrap();
println!("Generated deep_nesting.pdf.in with 300 levels of nesting");
}