diff --git a/org-pdftools.el b/org-pdftools.el index 5ff0a55..df6320d 100644 --- a/org-pdftools.el +++ b/org-pdftools.el @@ -175,19 +175,11 @@ Can be one of highlight/underline/strikeout/squiggly." (with-selected-window (org-noter--get-doc-window) (image-set-window-vscroll - (round - (/ - (* - (string-to-number height) - (cdr (pdf-view-image-size))) - (frame-char-height)))))) + (* (string-to-number height) + (cdr (pdf-view-image-size)))))) (image-set-window-vscroll - (round - (/ - (* - (string-to-number height) - (cdr (pdf-view-image-size))) - (frame-char-height)))))) + (* (string-to-number height) + (cdr (pdf-view-image-size)))))) (when (and annot-id (not (string-empty-p annot-id))) (if (bound-and-true-p org-noter--session) @@ -272,11 +264,9 @@ Can be one of highlight/underline/strikeout/squiggly." 'edges))) (t (/ - (* - (or (image-mode-window-get - 'vscroll) - 0) - (frame-char-height)) + (or (image-mode-window-get + 'vscroll) + 0) (float (cdr (pdf-view-image-size))))))) ;; pdf://path::page++height_percent;;annot_id\\|??search-string