pdf-tools
pdf-tools copied to clipboard
Underline looks like strikethrough
Describe the bug
Underline
markup looks like strike-thorough
Steps to Reproduce the behaviour
- Open pdf file in
pdf-view
. - Select region (highlight a word)
-
pdf-annot-add-underline-markup-annotation
Result:
What is the expected behaviour? Underline should be closer to the bottom of the characters.
Desktop Please complete the following information:
- OS: Ubuntu 22.04
- Emacs Version: 2802
- Poppler Version: pdftocairo version 22.02.0
Your pdf-tools install Please complete the following information:
-
pdf-tools
Version: [M-x package-list-packages
-> Search forpdf-tools
-> Hit Enter and copy all the details that pop up in the Help buffer]
Version 1.0.0
-
pdf-tools
customization / configuration that you use
;;;; Org-pdftools
;; Run `pdftools-install` to initialize.
(use-package! org-pdftools
:config
(setq
org-pdftools-root-dir #'~/Zotero/storage
org-pdftools-search-string-separator "??")
(with-eval-after-load 'org
(org-link-set-parameters "pdftools"
:follow #'org-pdftools-open
:complete #'org-pdftools-complete-link
:store #'org-pdftools-store-link
:export #'org-pdftools-export)
(add-hook 'org-store-link-functions 'org-pdftools-store-link))
(pdf-loader-install)
(add-to-list 'pdf-annot-list-listed-types 'square)
)
Additional context
- If you are reporting a crash, please try and add the Backtrace / Stacktrace of the crash.
- If you are reporting a bug, please try and attach an example PDF file where I can reproduce the bug.
- If you can attach screenshots or recordings, that is a great help
- Please try reproducing the bug yourself on Vanilla Emacs before reporting the problem.
Does it show the same on Evince? When you select the line, is the selection's bottom border at the current underline location?
If so, that's the PDF's text layer's problem.
I've tested out on Okular and Evince. The underline looks normal.