Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(QOL change) Clicking on text annotation ought to show a popup with just the annotation text inside. #4790

Open
IToastPotatoes opened this issue Feb 4, 2025 · 1 comment

Comments

@IToastPotatoes
Copy link

Currently, you can Ctrl+Click on text annotations to open the edit window, or you can hover over them to show the start of an annotation. My professor likes to leave long comments in text annotations, which requires me to go into the edit window in order to view them in their entirety. I find this is not a very good user experience. Here is what Firefox pdf viewer does (although it doesn't actually display the text, seems to be a bug).

Image

The blacked out part is the name of my professor.

It would be great if simply left clicking (or some other shortcut) on an annotation would bring up such a window, so I can read the annotation without opening this large edit window with a lot of extra things that I don't need. Also, opening the edit window is a little uncomfortable as its now possible to delete the annotation by accident (I'm imagining spilling tea all over my keyboard or something), which would be inconvenient. Furthermore, it's not ideal for users who aren't confident with tech - since the edit window is an intimidating piece of UI design. I think that click-to-view on an annotation is a very intuitive feature - it's what I expected to happen when I clicked on an annotation in SumatraPDF, and I was surprised when it didn't do anything.

Image

For contrast, here's what sumatrapdf offers right now. Also, this opened on my second monitor for some reason, which is pretty inconvenient.

Alternatives:

  • The partial text in the hover window could be changed to include the entire annotation, but I think this isn't ideal because (a) waiting for the hover window to show up is still annoying and (b) it's a useful piece of functionality on its own, so there's no reason to replace it with something else.
  • The edit window could be changed so that by default it just shows the comment information, and there's a button you click to view the rest of the tools. I think this is also not ideal as it would probably be more work than just making a window that shows up next to the annotation when you click it.

Also, I'd be more than happy to help make this feature happen - although I don't know much about how collaboration on github works. If someone can show me the ropes I'll figure out how SumatraPDF is coded and have a go at implementing it myself.

Thanks all!

@GitHubRulesOK
Copy link
Collaborator

GitHubRulesOK commented Feb 4, 2025

The PDF specs never explained in detail how a reader is supposed to handle tips other than they are a SHORT hint to fuller commentary.

Image

SumatraPDF is based on MuPDF

ImageImage
SumatraPDF uses the tooltip to show the short comments and the sidebar for a fuller picture

Image
Image

Acrobat expects to show more than most

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants