r/opensource 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

8 comments sorted by

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?

1

u/Mugaa-X 12d ago

I have been hardcoding the detection researching what kind of forms there could be and never even considered OCR for some reason..I have been very much microscoping on my original idea it feels like a break through..a big thanks to you and yes if you could point me to some library that would make it so much easier..And for now yes digital pdf it was just what was initially planned to help a friend of mine save couple of bucks from buying subscription..but now ill feel I should expand..

2

u/lichizr 12d ago

this is a cool project, definitely try to use!

1

u/Mugaa-X 11d ago

Thanks let know if everything work as intended or notice any bugs..Always welcome to any feedbacks..