PDF "Adapt to Theme" not working

Steps to reproduce

  1. Open the Sandbox vault and enable dark mode.
  2. Drag a PDF into the file explorer.
  3. Click on the PDF to open it.
  4. In the PDF viewer, go to Display options and enable “Adapt to theme”.

Did you follow the troubleshooting guide? [Y/N]


Expected result

The PDF colors are inverted to fit dark mode, so the background becomes black and text becomes white.

Actual result

The PDF colors remain unchanged.


Obsidian version: v1.5.3
Installer version: v1.4.13
Operating system: Windows 10 Home 10.0.19045
Login status: not logged in
Insider build toggle: on
Live preview: on
Base theme: dark
Community theme: none
Snippets enabled: 0
Restricted mode: on


Additional information

Note: the PDF invert feature when using the Minimal theme works fine.

works for me. Bear in mind that not all PDFs can be adapted. It won’t work on scanned documents/images.

I have the same issue on my PC (Win 10). On Mac it works fine with the same pdf.