Skip to content

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

@pgh79

Description

@pgh79

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions