Show HN: pdfdark.com – view pdf's in "dark mode" all on client

pdfdark.com

17 points by iamdan a day ago

I wanted a way to read PDFs at night and not burn my retinas out so I whipped together this super simple website with Claude to solve my problem.

It uses Mozilla's pdf.js library to load and render a PDF and then inverts the colors with CSS. It has basic controls like zoom in, zoom out, reset zoom, previous and next page. There are some keyboard shortcuts that you can find by toggling the "q" key.

drops 12 hours ago

For those who read on mobile and are too lazy to convert all they have, a quick access shortcut to the 'inverted colors' display mode helps.

miles 20 hours ago

For those uncomfortable uploading documents, a number of other native apps also dark/inversion mode, including Skim for macOS: https://skim-app.sourceforge.io .

KTibow 17 hours ago

It's unfortunate that this isn't a default option. The only viewer I've seen that happens to be able to do this is Gnome's Document Viewer.

  • johnisgood 8 hours ago

    You can invert colors in MuPDF, and someone added a way to save your settings (incl. width and height, position of window, inverted color, zoom) and whatnot upon quitting. This person added a search history too (per PDF). I forgot who though, which might make my comment not-so-helpful.

    If interested, I am willing to look for it, might be someone I follow.

  • salutis 16 hours ago

    Also PDF Tools for Emacs, where PDF can match your theme.