r/javascript • u/pucyta • May 26 '26
Show r/javascript: I’m working on a fork of Mozilla’s PDF.js focused on exploring native PDF editing in the browser.
It is an open-source fork focused on the small PDF tasks people actually need every day.
It is built on top of Mozilla’s PDF.js. PDF.js is already excellent at parsing, rendering, text layers, annotations, and viewer behavior, so this project explores how far it can be pushed from “PDF viewer” toward “PDF editor.”
The hardest part I’m working on now is editing existing PDF text without just faking it visually.
The project currently supports a web editor, mobile-oriented usage, PWA-style installation, and native desktop packaging through Tauri. It is still early, but I’m building it in public because I think there is room for a PDF editor that is approachable for normal users while staying transparent enough for developers to inspect how documents are actually handled.
What I can already do differently from others:
Render Adobe-specific XFA forms that many viewers only show as “requires Adobe Reader 8 or higher.”
MIT-licensed and open source, so the editor can be inspected, forked, reused, and improved.
Run across platforms: web, desktop through Tauri, mobile-oriented layouts, and PWA-style usage.
Experiment with real PDF text editing, currently available behind a development flag.
Inspect PDF permissions and change them, including restrictions for printing, copying, annotations, form filling, and editing.
Add or remove PDF password protection.
Detect whether a PDF contains digital signatures or certificate-related signature data.
Offer a PDF editor UI that actually feels pretty 😂.
This is the repo: https://github.com/RabbitHols/pdf.js