mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Here's the problem: 1. Org's link system unconditionally calls *all* link :store handlers when you call `org-store-link`, and all :export handlers when you export an Org file. 2. The org-pdftools package works by defining a custom pdf: link with custom :store and :export handlers. 3. Those handlers do not perform error handling before using pdftool's API. 4. pdf-tools fails loudly and ungracefully with a "pdf-info-epdfinfo-program is not executable" error when its API is used and epdfinfo isn't installed. TL;DR org-pdftools effectively breaks storing/exporting in org-mode until pdf-tools-install is executed to install epdfinfo. This is awful UX, so let's suppress the error.