https://bugs.kde.org/show_bug.cgi?id=516643

            Bug ID: 516643
           Summary: Support all kinds of email address links in PDF files
    Classification: Applications
           Product: okular
      Version First 25.12.2
       Reported In:
          Platform: Manjaro
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: PDF backend
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Created attachment 190046
  --> https://bugs.kde.org/attachment.cgi?id=190046&action=edit
example PDF

SUMMARY

Some email addresses in PDFs files do not show a mailto: link, but other PDF
viewers like PDF.js do.

STEPS TO REPRODUCE
1. Open in okular the example PDF from the attachment (or build it yourself see
ADDITIONAL INFORMATION)
2. Hover with your mouse over the two email addresses in the document.

OBSERVED RESULT

Only the upper email address shows a mailto to link in the hint, which can be
clicked.

EXPECTED RESULT

Both email addresses in the document show a mailto link in the hint, which can
be clicked.

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Manjaro Linux 
KDE Plasma Version: 6.5.5
KDE Frameworks Version: 6.23.0
Qt Version: 6.10.2

ADDITIONAL INFORMATION

The second email address in the document seems to be somehow different. If the
address contains a dash, PDF.js had also problems with it in a previous
version. In the issue there a developer explained the different between the two
email addresses (maybe that is helpful):

> It looks like a bug in the autolinker. The first occurrence that is rendered 
> correctly is a link annotation inside the PDF file, while the second link 
> that is not rendered correctly is a link that is inferred from the text 
> content.
Citated from comment on GitHub issue in PDF.js project:
https://github.com/mozilla/pdf.js/issues/20557#issuecomment-3716148618

The PDF is created with LaTeX.
Compiler: LuLaTex; Buildsystem: latexmk; Version: TeX 3.141592653 (TeX Live
2026/dev/Arch Linux)
The following is the source code for the document:

\documentclass{amsart}

\usepackage{hyperref}

% Macro to use same adress for \email and href example
\newcommand{\myemail}{[email protected]}

\title{email in amsart}
\author{John Doe}
% The second email address came from here
\email{\myemail}

\begin{document}
        \maketitle  

        % The first email address came from here
        email link in the text body: \href{mailto:\myemail}{\myemail}

\end{document}

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to