Bug 305701 - Annotations: use sensible default size of inline notes
Summary: Annotations: use sensible default size of inline notes
Status: CONFIRMED
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: 0.15.0
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-24 09:20 UTC by Felix Möller
Modified: 2022-03-21 11:12 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
showing a too big box (25.54 KB, image/png)
2012-08-24 09:21 UTC, Felix Möller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Möller 2012-08-24 09:20:01 UTC
Thanks for adding annotations.

Adding inline notes to the document, there is some problem in setting the size. The yellow elements get huge even for small text. As they are opaque they cover text. 
Thus the should try to be small. However, sometimes they use twice the needed space.

Reproducible: Always

Steps to Reproduce:
1. open PDF
2. Add inline annotation F6 and then 2
3. Look at the annotation
Actual Results:  
A box just the right size for the text

Expected Results:  
The box is huge.
Comment 1 Felix Möller 2012-08-24 09:21:26 UTC
Created attachment 73428 [details]
showing a too big box
Comment 2 Fabio D'Urso 2012-08-24 09:34:56 UTC
I agree that it's a annoying bug and that it should be fixed.
In the meantime, as a workaround, I suggest to make the annotation box initially as big as you think you are going to need (by keeping the left mouse button pressed and dragging the opposite vertex), but leave the initial text blank, so that it doesn't get resized.
Then you can start to fill it using the yellow popup note (the one that opens when you doubleclick), which doesn't cause the annotation to be resized.
Comment 3 Pranab Roy 2014-10-28 03:49:39 UTC
If this issue is still open I would like to work on this. As I am new kindly help me to start with it. I have the initial source code set-up.
Comment 4 Albert Astals Cid 2014-10-29 00:33:02 UTC
What do you mean "help me to start with it"? What have you tried and what is your problem?
Comment 5 Justin Zobel 2021-03-09 23:59:24 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.
Comment 6 Mikael 2022-03-21 11:12:55 UTC
The padding arround inline text objects have obviously been adjusted in Okular, but unfortunately without testing how the adjustment works when viewing the result in other PDF readers, so now Typewriter and Inline note text objects created in Okular are frequently cropped when viewed in for example Acrobat reader.
See:
https://bugs.kde.org/show_bug.cgi?id=334210
The font used by Okular for Typewriter and Inline note annotations is substituted to another default font face when viewed in other readers. Obviously the Okular font face requires less space compared to the substituted font in other readers, such as Adobe Acrobat reader or pdf.online web-app. The result is that text boxes created around on-screen text annotations in Okular is to small for the text inside them when viewed in another viewer.
A way to handle this better in Okular until custom fonts are supported by Poppler is to use a (much) more space consuming font face for annotations in Okular, or to increase the padding arround Typewriter and Inline note annotations in Okular. My testing suggest that today you need to set the font size in Okular to at least '12' (in contrast to default '9') in order to avoid cropping (for longer lines or multi-line annotations) when the font face used by Okular/Poppler is substituted to another default font face and font size in other PDF readers.