weirdNox / org-noter

Emacs document annotator, using Org-mode
GNU General Public License v3.0
1.08k stars 101 forks source link

org-noter: Wrong type argument: integer-or-marker-p, nil when using PDFView mode #186

Open pgh79 opened 1 month ago

pgh79 commented 1 month ago

I encountered an error when using org-noter with PDFView mode. Here are the steps to reproduce the issue:

Open a PDF file in Emacs using pdf-tools.

Run org-noter and input the file name and storage location as prompted.

After confirming the inputs, the following error is thrown: Error: org-noter: Wrong type argument: integer-or-marker-p, nil

This only happens when using PDFView mode. It works fine in DocView mode. I have also confirmed that the epdfinfo program is working correctly using pdf-info-check-epdfinfo.

Expected behavior: Org-noter should work smoothly with PDFView mode, allowing note-taking alongside the PDF document.

Screenshots: Here is a screenshot showing the error in PDFView mode:

Environment:

Emacs version: GNU Emacs 29.1 (build 1, aarch64-apple-darwin23.5.0, Carbon Version 170 AppKit 2487.6) org-noter version: 20240918.1703

Snipaste_2024-10-20_23-35-38 Snipaste_2024-10-20_23-21-38

_cgi-bin_mmwebwx-bin_webwxgetmsgimg__ MsgID=6255631419211231872 skey=@crypt_298f3214_f82757b72b322d11a3499234c17ef4a1 mmweb_appid=wx_webfilehelper

OS: macOS 14 (Sonoma) PDF Tools version: 20240429.407 Additional context: I have attached the relevant configuration and steps to reproduce the issue in the attached images.