Bug 486681 - Display comments created by latex pdfcomment
Summary: Display comments created by latex pdfcomment
Status: ASSIGNED
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: 24.02.1
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-06 19:06 UTC by auxsvr
Modified: 2024-08-28 06:48 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
PDF file with 2 acronyms demonstrating the issue. (4.96 KB, application/pdf)
2024-05-07 05:41 UTC, auxsvr
Details
LaTeX source (571 bytes, text/plain)
2024-05-07 06:08 UTC, auxsvr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description auxsvr 2024-05-06 19:06:14 UTC
SUMMARY
Comments in PDF files created by latex/xelatex acro/pdfcomment do not display in Okular, although evince displays them. Such comments are useful to display acronyms.

STEPS TO REPRODUCE
1. Write a TeX file using latex, acro, pdfcomment, that includes acronyms and pdfcomments.
2. Open it with okular.

OBSERVED RESULT
The acronym pdfcomment is not displayed when I hover the cursor over the acronym. The mouse cursor changes shape over acronyms, which implies that Okular identifies the string as an acronym.

EXPECTED RESULT
The acronym pdfcomment is displayed on hover over the acronym.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: openSUSE Tumbleweed
(available in About System)
KDE Plasma Version: 6.0.2
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0
Comment 1 Oliver Sander 2024-05-07 03:52:47 UTC
Please provide a simple test file.
Comment 2 auxsvr 2024-05-07 05:41:04 UTC
Created attachment 169257 [details]
PDF file with 2 acronyms demonstrating the issue.

The two acronyms are REST, SOAP.
Comment 3 Oliver Sander 2024-05-07 06:02:12 UTC
Thank you!  Please also attach the LaTeX source file.
Comment 4 auxsvr 2024-05-07 06:08:31 UTC
Created attachment 169259 [details]
LaTeX source
Comment 5 Albert Astals Cid 2024-06-16 22:50:47 UTC
It's annoying, they are "fake buttons with tooltip".

We could try to understand it and create fake areas that only show a tooltip and not the button (that shows if you press the show forms button in okular [no tooltip though])
Comment 6 Bug Janitor Service 2024-08-25 10:52:48 UTC
A possibly relevant merge request was started @ https://invent.kde.org/graphics/okular/-/merge_requests/1048
Comment 7 Albert Astals Cid 2024-08-27 23:12:21 UTC
Git commit 07cde822a3aaba9070871bd64b93a76db478ae0d by Albert Astals Cid, on behalf of Antonio Gorga.
Committed on 27/08/2024 at 23:12.
Pushed by aacid into branch 'master'.

Set the Form tooltip if there's one

M  +3    -0    part/formwidgets.cpp

https://invent.kde.org/graphics/okular/-/commit/07cde822a3aaba9070871bd64b93a76db478ae0d
Comment 8 Albert Astals Cid 2024-08-28 06:48:25 UTC
Git commit d4b9eb63e9bd59299c7b5f096970295dd62947b1 by Albert Astals Cid, on behalf of Antonio Gorga.
Committed on 28/08/2024 at 06:48.
Pushed by aacid into branch 'release/24.08'.

Set the Form tooltip if there's one
(cherry picked from commit 07cde822a3aaba9070871bd64b93a76db478ae0d)

M  +3    -0    part/formwidgets.cpp

https://invent.kde.org/graphics/okular/-/commit/d4b9eb63e9bd59299c7b5f096970295dd62947b1