[Zotero PDF reader] Incorrect surrounding box size of hyperlinks in pdf files

When I use the Zotero PDF reader in the preview edition, I find that the surrounding boxes of hyperlinks are not displayed as they are supposed to have. For example:
- page numbers in contents
https://ibb.co/W2YcNmT
- bibliography hyperlinks
https://ibb.co/DD3Mbhc

However, if I open the file in the official demo of pdf.js (https://mozilla.github.io/pdf.js/web/viewer.html), the surrounding box is rendered correctly:
https://ibb.co/ZHSRk6j
https://ibb.co/RHXDJb4

Such hyperlink style is used in some arXiv files. I wonder if there are some methods to fix the size of the surrounding box or merely omit the box as Adobe PDF Reader and SumatraPDF do.
In SumatraPDF:
https://ibb.co/Ytpfrdr
https://ibb.co/Yk4KK7h
  • Thanks for reporting. We'll investigate.
  • I don't know if I should pile on here or open a new issue, but I think it's closely related, so here goes.

    In Zotero 6.0.30 on Ubuntu 22.04, link boxes show as white lines that strike-out the text, which makes for poor readability.
    The funny thing is, the same PDF renders *without* any strike-outs in most other PDF readers, including Firefox built-in PDF reader v115.3.1esr, Evince, Okular, xpdf, and Adobe Reader v9 (available as flatpak).

    Admittedly, this PDF was generated with the following hyperref settings (only showing the pertinent ones):

    ```
    colorlinks=false,
    linkbordercolor=white,
    ```

    which explains why the link boxes were white instead the default red, but the reason I set them to "white" was to hide them (since unfortunately linkbordercolor does not allow `none` or `false` as values, and setting it to empty as recommended on TeX.SE draws black borders in all the mentioned PDF readers), which works in all PDF readers except Zotero's, as we have seen.

    So how come Zotero's PDF reader does this, but Firefox's does not? Aren't they both based on pdf.js?

    I think it would be great if Zotero tweaked its behaviour in this regard to align with how most other PDF readers render links.

    Of course, it's possible to set `hidecolors` in hyperref, which hides *all* link boxes and then Zotero renders links just the same as all other PDF readers: without any visible link boxes and light yellow on hover.
    But I like to give the reader a hint that the document contains links by having boxes around certain kinds of links, while hiding the border for the kind of links most likely to occur in the text (citations, cross-references, etc.).

    Anywway, appreciate all your efforts on Zotero and its PDF reader, I think its annotation and commenting capabilities are best-in-class!

    https://tex.stackexchange.com/questions/148754/how-to-set-the-border-color-in-pdf-forms-to-none
  • @solarchemist Try Zotero 7 beta, those lines likely won't be rendered.
Sign In or Register to comment.