Bug 426897 - Can't print any document format (JPEG, DjVu, etc.) other than PDF with annotations
Summary: Can't print any document format (JPEG, DjVu, etc.) other than PDF with annota...
Status: CONFIRMED
Alias: None
Product: okular
Classification: Applications
Component: printing (show other bugs)
Version: 20.12.0
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-23 09:35 UTC by Thierry
Modified: 2023-05-16 09:27 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
exemple (179.34 KB, application/vnd.kde.okular-archive)
2020-09-23 09:35 UTC, Thierry
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thierry 2020-09-23 09:35:38 UTC
Created attachment 131881 [details]
exemple

SUMMARY



OBSERVED RESULT
Hello. I just discovered something weird. You can open a JPG file with okular. You can make annotations there. However, it is impossible to print the file with the annotations. (What is possible with a pdf) By registering we have a .okular file. We can edit it. The annotations are there. I tried to print in a pdf dummy printer. The annotations have disappeared. It is therefore impossible to print the annotations of a jpg file.



SOFTWARE/OS VERSIONS
Linux/KDE Plasma:
Comment 1 skierpage 2023-05-16 02:23:01 UTC
Confirming bug with Okular 23.04.0 package on Fedora 38 KDE Spin with KDE Frameworks version 5.105.0 and Qt version 5.15.9.
When printing a PDF document, the Print > [Options >>>] dialog replaces the Print Options tab with a PDF Options tab, which has a checkmark to "Print annotations" (and to "Force rasterization"). But when printing an annotated JPEG, .png, DjVu file, or probably any document format other than a PDF you don't get this option, and the printed document doesn't show any annotations.

The workaround is to use a tool like Imagemagick `convert` to first convert the document into a PDF and then annotate that in Okular. There doesn't seem to be any way to copy all the annotations you made to the image file and paste them into the PDF.

It's unclear why the option to print annotations is restricted to PDFs.

The Okular Handbook Menubar chapter could be clearer. It says "Please take into account that Okular has some specific options for printing PDF", but this sounds like if you have annotated any document type in Okular and then choose to "Print to File (PDF)", then you should see these options, and you don't. Maybe change the handbook text to "specific options for printing a PDF document".

The Okular Handbook Document Format Handlers Status page https://okular.kde.org/formats/ indicates that DjVu files support annotations, even though you can't print them. It doesn't indicate that you can annotate images, even though you can. Support for annotations and for printing annotations should be two separate rows.
Comment 2 Luigi Toscano 2023-05-16 09:27:34 UTC
Please don't change the Version field, which reports the initial version where the issue was found, not the last one.

Unfortunately the old versions are cleaned (unfortunately) and I can't restore it back to 1.9.3, the initial value. I've set it to 20.12.3, the earliest version available.