pdfblah.com

← All guides

Dark mode for any PDF

Your reader app has dark mode; your PDFs don't care. They arrive as white pages that light up the room at midnight. recolor bakes the scheme into the file itself, so every viewer, tablet, and e-reader shows it, no plugin required.

How to do it

pip install "pdfblah[app]"

# dark mode: near-black paper, soft light ink
pdfblah recolor book.pdf -o book-dark.pdf

# warm sepia instead
pdfblah recolor book.pdf -o book-sepia.pdf --scheme sepia

# any ink color on white paper: the sheet-music move
pdfblah recolor score.pdf -o score-blue.pdf --scheme ink=navy
pdfblah recolor score.pdf -o score.pdf --scheme "ink=#204080"

What the schemes do

The honest trade-off

Like Clean scan, the output pages are re-rendered images at your chosen --dpi (default 200). That is what makes the scheme stick everywhere, and it costs the text layer; run OCR afterwards if you want your dark-mode book searchable again. Color originals are mapped through their brightness, so photos come out monochrome in the scheme.

Tips