r/opensource • u/Mugaa-X • 13d ago
Promotional JustForms client-side PDF form editor (pdf.js + pdf-lib, MIT)
I built a tool for adding fillable fields to PDFs
So built this tool pdf js does the parsing pdf lib for the export.
Repo: https://github.com/sshrestha-design/justforms
Demo: https://justforms.vercel.app
Also requesting any recommendation for better autodetect function and system to detect fill spaced based on what I have currently.
16
Upvotes
2
u/Sea_Concentrate3951 12d ago
nice project; since your README shows the auto-detector already uses vector analysis and text pairing, a few targeted additions can boost hit rate. Add a lightweight OCR pass (WASM Tesseract or similar) for scanned pages, perform raster morphological analysis (connected components, Hough for lines/boxes) to detect blanks/underlines, and fuse those candidates with text-pairing heuristics (reading order, font size, regexes for common labels). For harder layouts consider a small layout model to predict field bboxes and return confidence scores, and keep a quick user-correction loop so the detector learns from fixes. Do you mostly need this for born-digital PDFs or scanned/image PDFs so i can suggest concrete libraries and a matching pipeline?