Bug 501370

Summary: Size of annotation notes added to a pdf can't be sized after text has been entered to them
Product: [Applications] okular Reporter: adalbert.hanssen
Component: generalAssignee: Okular developers <okular-devel>
Status: RESOLVED WORKSFORME    
Severity: normal CC: nate
Priority: NOR    
Version First Reported In: 21.12.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description adalbert.hanssen 2025-03-11 17:27:45 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

SUMMARY

This bug report pertains to okular 21.12.3



STEPS TO REPRODUCE
1. add some Haftnotizes (the upper one from the F6 comment tools) to a document
2. if the entered text does not fit to the box, it is partially invisible
3. 

OBSERVED RESULT
You can't change the size of the box afterward!
In order to improve that, you have to remove the Haftnotiz (Ctrl-Z) and place a new one by first accommodating enough space for it. That's terribly awkward!



EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: Ubuntu 22.04.5 LTS
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: $ qtchooser -list-versions returns:
4
5
default
qt4-x86_64-linux-gnu
qt4
qt5-x86_64-linux-gnu
qt5
$ 

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2025-03-11 23:45:34 UTC
What app are you using to create these notes? Okular?
Comment 2 adalbert.hanssen 2025-03-13 10:37:06 UTC
(In reply to Nate Graham from comment #1)
> What app are you using to create these notes? Okular?

yes, I use Okular. After pressing <F6> I can choose between different tools to highlight, underline add notes and so on. These tools are the main reason why I use Okular so much. It is like reading a book and having a set of color pencils at hand and systematically use them to higlight certain parts of it.

The function of adding notes is like using a ballpoint writer and add a note to such a document.

Unfortunately there is nothing to remove such marks or notes. Using a pencil and an eraser for such things, that's something else which would be great to have at hand.
Comment 3 Nate Graham 2025-03-13 17:46:23 UTC
Ah, I had missed where you wrote this in the text, sorry.

Unfortunately that version of Okular is also extremely old. Any chance you can upgrade to something that was released in the last two years? Snap or Flatpak can be be methods of doing this.
Comment 4 adalbert.hanssen 2025-03-18 22:45:29 UTC
(In reply to Nate Graham from comment #3)
> Ah, I had missed where you wrote this in the text, sorry.
> 
> Unfortunately that version of Okular is also extremely old. Any chance you
> can upgrade to something that was released in the last two years? Snap or
> Flatpak can be be methods of doing this.

I just installed version 24.12.3 as Snap (sudo snap install okular).
 But that does not work. If I open a pdf file, there is an error message

file:///home/adalbert/Downloads/Contact information of the applicant.pdf“ kann nicht geöffnet werden (
)

Notice the empty parentheses just with a linebreak in between them.
Comment 5 Nate Graham 2025-03-18 22:47:39 UTC
That sounds like a Snap packaging error. Maybe try the Flatpak?
Comment 6 adalbert.hanssen 2025-03-18 22:49:19 UTC
(In reply to adalbert.hanssen from comment #4)
> (In reply to Nate Graham from comment #3)
> > Ah, I had missed where you wrote this in the text, sorry.
> > 
> > Unfortunately that version of Okular is also extremely old. Any chance you
> > can upgrade to something that was released in the last two years? Snap or
> > Flatpak can be be methods of doing this.
> 
> I just installed version 24.12.3 as Snap (sudo snap install okular).
>  But that does not work. If I open a pdf file, there is an error message
> 
> file:///home/adalbert/Downloads/Contact information of the applicant.pdf“
> kann nicht geöffnet werden (
> )
> 
> Notice the empty parentheses just with a linebreak in between them.

If I start Okular from a command line, I get this:

$ env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/okular_okular.desktop /snap/bin/okular
Qt: Session management error: Could not open network socket
kf.config.core: Watching absolute paths is not supported "/snap/okular/165/kf6/usr/share/color-schemes/BreezeLight.colors"

(okular:30019): GLib-GIO-WARNING **: 23:46:48.917: Error creating IO channel for /proc/self/mountinfo: Permission denied (g-io-error-quark, 14)

(okular:30019): GLib-GIO-ERROR **: 23:46:49.012: No GSettings schemas are installed on the system
Trace/Breakpoint ausgelöst (Speicherabzug geschrieben)
$
Comment 7 adalbert.hanssen 2025-03-19 12:01:37 UTC
(In reply to Nate Graham from comment #5)
> That sounds like a Snap packaging error. Maybe try the Flatpak?

When I try to install the flatpak, it comes like this:

Similar refs found for ‘okular’ in remote ‘flathub’ (system):

   1) app/org.kde.okular/x86_64/stable
   2) app/org.kde.okular.kirigami/x86_64/stable

Which do you want to use (0 to abort)? [0-2]: 1
Required runtime for org.kde.okular/x86_64/stable (runtime/org.kde.Platform/x86_64/6.8) found in remote flathub
Do you want to install it? [Y/n]: Y

org.kde.okular permissions:
    ipc       network       cups           fallback-x11         pulseaudio           wayland
    x11       dri           bluetooth      file access [1]      dbus access [2]

    [1] host, xdg-config/kdeglobals:ro
    [2] com.canonical.AppMenu.Registrar, org.freedesktop.ScreenSaver, org.freedesktop.login1, org.kde.KGlobalSettings,
        org.kde.kconfig.notify, org.kde.kdeconnect


        KENNUNG                                         Zweig                 Op            Remote            Download
 1.     org.freedesktop.Platform.GL.default             24.08                 i             flathub           < 156,8 MB
 2.     org.freedesktop.Platform.GL.default             24.08extra            i             flathub           < 156,8 MB
 3.     org.freedesktop.Platform.VAAPI.Intel            24.08                 i             flathub            < 15,0 MB
 4.     org.freedesktop.Platform.openh264               2.5.1                 i             flathub           < 971,4 kB
 5.     org.kde.KStyle.Adwaita                          6.8                   i             flathub             < 8,2 MB
 6.     org.kde.Platform.Locale                         6.8                   i             flathub           < 401,7 MB (partial)
 7.     org.kde.Platform                                6.8                   i             flathub           < 385,9 MB
 8.     org.kde.okular.Locale                           stable                i             flathub            < 16,9 MB (partial)
 9.     org.kde.okular                                  stable                i             flathub            < 51,8 MB


Proceed with these changes to the system installation? 

When I sum up all these memory requirements, the sum yields <2214,8 MB. But how much less than that? 2,2GB is quite a lot of disk space!

Isn't there a Debian package? Maybe the gigantic memory demand results in a Xubuntu 22.04 to be run upon. Then I'll take another look at it after updating my OS to Xubuntu 24.04. But that needs a lot of preparation and can't be done just for fun!
Comment 8 Bug Janitor Service 2025-04-03 03:46:47 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 9 adalbert.hanssen 2025-04-07 15:25:41 UTC
(In reply to Bug Janitor Service from comment #8)
> 🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15
> days. Please provide the requested information, then set the bug status to
> REPORTED. If there is no change for at least 30 days, it will be
> automatically closed as RESOLVED WORKSFORME.
> 
> For more information about our bug triaging procedures, please read
> https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.
> 
> Thank you for helping us make KDE software even better for everyone!

Today I came across a computer which had version 24.12.3 as snap installation.

Again not all text was displayed in the sticker note ("Haftnotiz"). Also I was unable to resize the Haftnotiz later.

It needs some improvement!
Comment 10 Bug Janitor Service 2025-04-22 03:47:25 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 11 Bug Janitor Service 2025-05-07 03:47:07 UTC
🐛🧹 This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.