Skip to content

v0.3.0 β€” PDF converter rewrite

Choose a tag to compare

@Michaelliv Michaelliv released this 27 Mar 22:19
· 169 commits to main since this release

PDF converter rewrite

Rewrote the PDF converter from scratch with mupdf (native WASM).

What's new

  • Table detection β€” vector line extraction + raycasting places text into markdown tables
  • Diagram filtering β€” block diagrams (sparse grids, repeated labels) are excluded from table detection
  • Multi-column layout β€” two-column documents (legal docs, datasheets) read in correct order
  • Header/footer stripping β€” repeated running headers removed across pages
  • Image extraction β€” diagrams cropped and saved as PNGs when imageDir is provided
  • CTM tracking β€” content stream coordinate transforms applied correctly
  • Agent skill β€” npx skills add Michaelliv/markit

Performance

PDF Pages Time
Bitcoin whitepaper 9 26ms
US Constitution 16 56ms
Intel PCH datasheet 224 640ms
NXP S32K3xx datasheet 164 1.9s

Testing

58 tests across 4 test files covering grid detection, rendering, extraction, and column detection. Validated against Intel, NXP, Microchip, and Bitcoin whitepaper PDFs.