Bug 457494

Summary: Line dash pattern instructions containing many entries are not shown correctly.
Product: [Applications] okular Reporter: t_leitner
Component: PDF backendAssignee: Okular developers <okular-devel>
Status: RESOLVED UPSTREAM    
Severity: normal CC: aacid
Priority: NOR    
Version: 21.12.3   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: The PDF that display wrongly in okular but fine in e.g. evince
The reference image of how the QRCode should look like

Description t_leitner 2022-08-04 20:53:58 UTC
Created attachment 151119 [details]
The PDF that display wrongly in okular but fine in e.g. evince

SUMMARY

Line dash patterns (PDF 1.7 spec section 8.4.3.6) contain a dash array and a phase. It seems that okular has problems if the dash array contains too many entries. And from looking at the result it seems to just use a certain number of entries and cuts the rest off.

Evince and acroread 9 on Linux work just fine, displaying the PDF in question like the reference image (except for the color).

STEPS TO REPRODUCE
1. Load the attached PDF in okular.

OBSERVED RESULT

The QRCode is invalid and is not the same as the reference image.

EXPECTED RESULT

The QRCode should be equal to the one in the reference image.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 22.04
(available in About System)
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3
Comment 1 t_leitner 2022-08-04 20:54:27 UTC
Created attachment 151120 [details]
The reference image of how the QRCode should look like
Comment 2 Albert Astals Cid 2022-08-04 21:56:10 UTC
This is a poppler bug, please file it at https://gitlab.freedesktop.org/poppler/poppler/-/issues/new?issue
Comment 3 t_leitner 2022-08-06 20:44:02 UTC
FYI: The bug has been confirmed and is already fixed, see https://gitlab.freedesktop.org/poppler/poppler/-/issues/1281.