File Doctor Diagnostics & Repair Benchmarks
Accuracy metrics for magic byte signature detection, corrupt byte trimming, and OpenXML container reconstruction.
Methodology Note: Evaluates deterministic byte header inspection and XML AST reconstruction on damaged PDF and DOCX test samples.
Corrupted PDF Header Reconstruction
Measures deterministic byte signature scanning and header trimming on a damaged PDF with 32 prepended corrupted bytes.
Fixture Namecorrupted-header-sample.pdf
Reference Reduction2.9%
Reference Timing14.1 ms
Integrity AssertionPrepended 32 junk bytes trimmed, valid %PDF- header restored
OpenXML DOCX Manifest Reconstruction
Measures OpenXML container diagnostics and synthetic [Content_Types].xml manifest injection for unreadable Word files.
Fixture Namecorrupted-manifest-sample.docx
Reference Reduction-45.8%
Reference Timing18.6 ms
Integrity AssertionSynthetic [Content_Types].xml injected, package unzips cleanly