Lurker News
Add text, input boxes, pictures, signatures, delete pages, merge PDFs and password protect them. All happening in the browser, 100% free and no sign-up.

Comments (182) 50 threads

Show all comments

Showing thread 2 of 50

speerer1 reply#
Nice work. I've been building something lately to manipulate PDFs in the browser for privacy, although it's quite a different use case.

I think I see you're using pdf-lib and jspdf - both great libraries, and I'm using both, but:
(1) Have you seen the recent WASM compilation of MuPDF? I am also using it for some functions and find it really excellent with accessible APIs and highly functional. Worth an try!
(2) We chose different forks of the (unmaintained) pdf-lib - is there a reason you went with `pdf-lib-plus-encrypt`? I chose the cantoo fork, which seemed well-maintained to me - but I didn't research many others so would be interested to know if there is a good reason.

philjohnson4 replies#
(1) Yes, I am very familiar with the WASM compilation of MuPDF. It's got a lot of great features. I actually built another product pdfredactoronline.com that does redaction fully in the browser using the MuPDF WASM compilation. The reason I don't use it in BreezePDF is MuPDF has an APGL license which requires open-sourcing any code that uses their software. Which, I guess technically anything fully browser based is essentially open sourced :) so perhaps I could use it here.

Since a lot of the basic functionality I've added so far is also covered by more permissible packages like the ones you mentioned, I've started out just using those. But thanks for bringing that up, I'll revisit using MuPDF for redaction and other features
(2) I went with pdf-lib-plus-encrypt because the original pdf-lib doesn't have functionality for password-protecting PDFs, and since pdf-lib-plus-encrypt does, I used it so I could have that feature

speerer#
Thanks for the insight. Yes, the AGPL isn't a problem for me - I didn't check your licence as I could just view source :)
sroussey1 reply#
Is your code available?
what1 reply#
I would assume not based on their objection to AGPL libraries.
philjohnson4 replies#
not yet available as open source. Open-source has two main purposes I think: trust, and customizing/integrating it into other products.

On the first part, since everything happens in the browser, anyone can see the html/javascript and inspect the Network tab and see that no network requests are made that send their PDF anywhere.
And on the second part, I think most people who use the software aren't developers and won't want to modify it, and I don't particularly see a use case for integrating this software into another one, outside maybe an internal corporate scenario.
Though, maybe I'll add something where you can pay to get the desktop version, similar to what Sejda does.

Continue this thread — 4 replies

NoahZuniga#
> Which, I guess technically anything fully browser based is essentially open sourced :) so perhaps I could use it here.

Open source isn't just about the source code being available (and when making web apps, there is often a compile step which makes the browser facing code not source code), but also about the license under which it is available.
It is in every sense of the word technically not open source.

hasbot1 reply#
Weird that a google search for "pdf redact online" or "pdf redactor online" doesn't show your site in the first page.
philjohnson#
Hopefully it will soon, the site is brand new :)