Bug 497235 - preview and printing of (certain) PDF file fails
Summary: preview and printing of (certain) PDF file fails
Status: NEEDSINFO WAITINGFORINFO
Alias: None
Product: okular
Classification: Applications
Component: printing (show other bugs)
Version: 23.08.5
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-09 12:36 UTC by yadtxizh
Modified: 2025-01-04 03:47 UTC (History)
2 users (show)

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


Attachments
PS file produced via print preview (339.22 KB, application/octet-stream)
2024-12-09 12:45 UTC, yadtxizh
Details
PDF exhibiting print issue (modified) (143.50 KB, application/pdf)
2024-12-15 18:54 UTC, yadtxizh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description yadtxizh 2024-12-09 12:36:34 UTC
SUMMARY
Printing of (some) pdf files will fail, mostly silently.
OS is openSUSE 15.6, but also failed on 15.4.

STEPS TO REPRODUCE
1. Load PDF File and either 
2. select print preview
3. print (printing to pdf will do) 

OBSERVED RESULT
Print preview errors out or doesn't display a preview. Printing fails more or less silently. In Cups error log a message like

D [09/Dec/2024:12:05:36 +0100] [Job 2135] Error: /undefined in --load--
D [09/Dec/2024:12:05:36 +0100] [Job 2135] Operand stack:
D [09/Dec/2024:12:05:36 +0100] [Job 2135] true   --dict:77/200(L)--   ICCBased-8-0-1   --nostringval--   CIEBasedA   --nostringval--   --nostringval--   DecodeA   lcms2gammaproc
D [09/Dec/2024:12:05:36 +0100] [Job 2135] Execution stack:
D [09/Dec/2024:12:05:36 +0100] [Job 2135] --dict:748/1123(ro)(G)--   --dict:0/20(G)--   --dict:77/200(L)--   --dict:68/75(L)--   --dict:19/25(L)--   --dict:0/15(L)--   --dict:0/15(L)--   --dict:7/15(L)--   --dict:0/15(L)--   --dict:0/15(L)--   --dict:0/15(L)--
D [09/Dec/2024:12:05:36 +0100] [Job 2135] Current allocation mode is local
D [09/Dec/2024:12:05:36 +0100] [Job 2135] GPL Ghostscript 9.52: Unrecoverable error, exit code 1

However it seems not to be a cups issue as
a) printing to "PDF File" yields a small, probably truncated, file
b) printing the pdf directly via "lpr" works

EXPECTED RESULT
Printing via okular works, too.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
KDE Plasma Version: 5.27.11
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.12

ADDITIONAL INFORMATION
Workaround would be to select "Force Rasterization" on print dialog.
Installing "okular-spectre" makes no change.
A saved "ps" file (from preview) seems corrupt, too.
Comment 1 yadtxizh 2024-12-09 12:45:08 UTC
Created attachment 176458 [details]
PS file produced via print preview
Comment 2 yadtxizh 2024-12-09 12:48:24 UTC
Might be a issue for some time as https://forums.opensuse.org/t/cups-is-driving-me-crazy-doesnt-print-particular-pdfs/102845/39 might indicate.
Comment 3 Albert Astals Cid 2024-12-09 21:20:27 UTC
We need the pdf, not the ps.
Comment 4 yadtxizh 2024-12-15 18:54:57 UTC
Created attachment 176660 [details]
PDF exhibiting print issue (modified)

Slightly modified pdf (to remove names and identifying numbers, as it was a ticket)
Comment 5 Albert Astals Cid 2024-12-18 22:48:18 UTC
Works for me.

Which is your poppler version?
Comment 6 yadtxizh 2024-12-20 09:02:44 UTC
Some poppler components are 24.3.0 (like libpoppler-cpp0, libpoppler-glib8, libpoppler-qt5-1, libpoppler135), some are older (e.g. 22.1.0 for libpoppler117). This is checked via package manager.

The same version is stated in the generated (preview) ps which fails opening with gv, too.

Does that help or is there any other way to determine which version is used?
Comment 7 Albert Astals Cid 2024-12-20 09:11:17 UTC
Seems it's a "you're using old versions problem".

Can you try to run okular from flathub and confirm if it works for you (print preview at least?) https://github.com/flathub/org.kde.okular
Comment 8 Bug Janitor Service 2025-01-04 03:47:30 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!