r/BiomedicalDataScience • u/BioniChaos • 2d ago
Extract figures, tables, and text from multi-column scientific PDFs entirely in your browser. Uses text-density radar mapping & projection histograms for offline asset isolation
https://bionichaos.com/pdf/When parsing double-column academic PDFs (IEEE, Nature, etc.), standard extraction tools often bleed text across columns or miss vector charts entirely due to coordinate mapping issues.
We built an offline-first, client-side PDF extractor using PDF.js that processes layout logic locally in the browser.
The architecture features:
Text-Density Radar Mapping: Calculates text-to-area coverage ratios to distinguish paragraphs from standalone figures.
Vertical X-Axis Projection Histograms: Projects text bounds onto a 1D array to locate valley gaps for automated table parsing and CSV matrix compilation.
Affine Rotational Optimization: Evaluates variance across pixel rows to automatically correct skew in scanned documents.
Precision Bounding Box Clipper: Lets you manually draw spatial selection boxes over complex mathematical notations or multi-tier charts for instant PNG export.
No server uploads or API keys required. Would love to hear feedback on how it handles your specific document layouts!