Skip to main content
2 of 2
edited tags
Drew
  • 80.9k
  • 10
  • 125
  • 265

Bookmark Plus and pdf-tools/pdf-view error

I've installed Bookmarks+ from quelpa recently, and everything was working fine until I made a minor tweak with my pdf-tools config. Now I cannot jump to bookmarks of .pdf files from any buffer, although I can see from the buffer list window that the corresponding files have been opened.

To be concrete, if I do C-x j j and select a .pdf bookmark, I get a message in the mini-buffer, which depends on what buffer I am currently viewing, although in all cases Emacs does not jump to the appropriate .pdf:

  • If I am in the *Bookmark List* (or *scratch*) buffer, the message is
pdf-info--normalize-file-or-buffer: Buffer is not associated with any file :*Bookmark List* 
  • if I am in a buffer viewing the ~/Org/work.org file,
pdf-info-query: epdfinfo: Error opening /home/nonreligious/Org/work.org:PDF document is damaged 

Again, the .pdf file appears in the list of buffers that are open. No other bookmark (to .org, .txt, dired buffers) has any issues.

I think these two issues raised on github are relevant:

The problem seems to be with pdf-view-bookmark-jump-handler. The second issue still being open suggests there isn't an official fix yet... but I hope someone else has come across this issue and has found a workaround.

I've tried restoring the original pdf-tools configuration and restarting emacs, but to no avail.

Using Emacs v27.2, pdf-tools-20220522.13.