firecrawl / firecrawl/pdf-inspector
feat(wasm): support text extraction within page regions
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 19.2k
- Forks
- 1.3k
- Avg merge
- 9h 21m
- Merged PRs (30d)
- 51
Description
Summary
The napi binding lets you extract text from a specific page and region (pick a page, give it a bounding box, get the text back). The WASM package (@firecrawl/pdf-inspector-wasm) doesn't: it only does whole-document extraction (processPdf, extractText, classifyPdf, detectPdf, version), so it can't target a specific page and region.
Why it works
My current use case involves validating an uploaded PDF client-side by reading the text that sits at a specific position on a page. That maps directly to the region-based extraction the napi binding already offers, including the per-region signal when extraction looks unreliable. Without it in WASM, that kind of validation has to rely on whole-document output and loses the positional semantics.
Ask
Bring region-based text extraction to the WASM package.
Notes
- Feature request, not a bug.
- This would be handy for anyone with a similar case — thanks for the library and the features you already ship.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by comparing the WASM package exports—processPdf, extractText, classifyPdf, detectPdf, and version—with the existing napi binding's page-and-region extraction. Trace how the napi binding accepts a page and bounding box and reports per-region extraction reliability. Done means the WASM package can target a page region and expose the corresponding text and reliability signal.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust, wasm
- Domain
- api
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100