Improve pdf-page parsing
kaushalmodi opened this issue · comments
Make use of org-entry-get
instead of manually doing re-search-forward
/re-search-backward
to get the pdf page numbers from the properties.
Example:
(org-entry-get (point) "interleave_page_note")
instead of
(org-narrow-to-subtree)
(goto-char (point-min))
(re-search-forward "^ *:interleave_page_note: *\\(.*\\)")
(setq pdf-page (string-to-number (match-string 1)))
Resolved