Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add page-number support #100

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions org-noter-pdftools.el
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ To use this, `org-noter-pdftools-use-org-id' has to be t."
nil)))))

;; TODO(nox): Implement interface for skeleton creation
(defun org-noter-pdftools-create-skeleton ()
(defun org-noter-pdftools-create-skeleton (&optional page-number)
"Create notes skeleton with the PDF outline or annotations.
Only available with PDF Tools."
(interactive)
Expand Down Expand Up @@ -505,7 +505,7 @@ Only available with PDF Tools."

(setq insert-contents (y-or-n-p "Should we insert the annotations contents? "))

(dolist (item (pdf-info-getannots))
(dolist (item (pdf-info-getannots page-number))
(let* ((type (alist-get 'type item))
(page (alist-get 'page item))
(edges (or (org-noter--pdf-tools-edges-to-region (alist-get 'markup-edges item))
Expand Down