browsr icon indicating copy to clipboard operation
browsr copied to clipboard

Remove unused dependency PyMuPDF

Open iiLaurens opened this issue 3 months ago • 2 comments

It seems Pymupdf is a dependency, but it's unused.

Pymupdf is problematic in a corporate environment because it is AGPL3 licensed. Some companies even blacklist these packages, preventing them from being installed.

Also the AGPL3 license is a strong copyleft license, so your library becomes tainted and forced to be AGPL3 licensed. Since it is not actually used I don't think you are technically in violation, but its something to be wary off if you intend to embed it in browsr.

iiLaurens avatar Oct 07 '25 14:10 iiLaurens

We actually are using PyMuPDF but we're using its former name, fitz https://pymupdf.readthedocs.io/en/latest/tutorial.html#note-on-the-name-fitz

I will need to take a look at its licensing and see if there's an alternative, or get rid of it altogether

juftin avatar Oct 07 '25 15:10 juftin

If you are just using it to render, then Pdfium has a compatible license. PyPDFium2 is a good python implementation!

iiLaurens avatar Oct 07 '25 15:10 iiLaurens