pdf-tools icon indicating copy to clipboard operation
pdf-tools copied to clipboard

Underline looks like strikethrough

Open sati-bodhi opened this issue 2 years ago • 2 comments

Describe the bug Underline markup looks like strike-thorough

Steps to Reproduce the behaviour

  1. Open pdf file in pdf-view.
  2. Select region (highlight a word)
  3. pdf-annot-add-underline-markup-annotation

Result:

Screenshot from 2023-01-07 20-28-55

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 for pdf-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.

sati-bodhi avatar Jan 07 '23 13:01 sati-bodhi

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.

tongjie-chen avatar Jan 12 '23 02:01 tongjie-chen

Screenshot from 2023-01-12 10-33-56

I've tested out on Okular and Evince. The underline looks normal.

sati-bodhi avatar Jan 12 '23 02:01 sati-bodhi