-
Requires poppler-windows >= v20.12.1. It should work with older versions too but I haven't gone through and tested each one.
-
Download poppler for Windows from here.
-
Mac users will have to install poppler for Mac. You can do so with this homebrew formula.
from PdfDarkMode.darkmode import convert
convert("example.pdf")
from PdfDarkMode.darkmode import convert
convert(["example.pdf", "example2.pdf", ...])
python darkmode.py example.pdf example2.pdf ...