Bug 457494 - Line dash pattern instructions containing many entries are not shown correctly.
Summary: Line dash pattern instructions containing many entries are not shown correctly.
Status: RESOLVED UPSTREAM
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: 21.12.3
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-04 20:53 UTC by t_leitner
Modified: 2022-08-06 20:44 UTC (History)
1 user (show)

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


Attachments
The PDF that display wrongly in okular but fine in e.g. evince (1.50 KB, application/pdf)
2022-08-04 20:53 UTC, t_leitner
Details
The reference image of how the QRCode should look like (506 bytes, image/png)
2022-08-04 20:54 UTC, t_leitner
Details

Note You need to log in before you can comment on or make changes to this bug.
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.