Bug 449808

Summary: butt caps shown as rounded
Product: [Applications] okular Reporter: Friedrich Volkmann <bsd>
Component: PDF backendAssignee: Okular developers <okular-devel>
Status: RESOLVED UPSTREAM    
Severity: normal CC: oliver.sander
Priority: NOR    
Version: 21.12.1   
Target Milestone: ---   
Platform: FreeBSD Ports   
OS: FreeBSD   
Latest Commit: Version Fixed In:
Attachments: sample PDF
okular screenshot
evince screenshot

Description Friedrich Volkmann 2022-02-08 20:28:50 UTC
Created attachment 146457 [details]
sample PDF

SUMMARY
Line caps are sometimes rendered as rounded when they aren't.

STEPS TO REPRODUCE
I saved an Inkscape drawing (with butt caps) as a PDF (attached here) and opened it with okular.

OBSERVED RESULT
rounded caps

EXPECTED RESULT
butt caps

SOFTWARE/OS VERSIONS
FreeBSD: 12.2-STABLE
KDE Plasma Version: none
KDE Frameworks Version: 5?
Qt Version: 5

ADDITIONAL INFORMATION
Evince renders the caps correctly.
Comment 1 Friedrich Volkmann 2022-02-08 20:30:09 UTC
Created attachment 146458 [details]
okular screenshot
Comment 2 Friedrich Volkmann 2022-02-08 20:31:07 UTC
Created attachment 146459 [details]
evince screenshot
Comment 3 Oliver Sander 2022-02-08 20:35:58 UTC
This appear to be a bug in poppler, the library used by Okular to render pdf files.  I can reproduce the problem with pdftoppm 20.09.0.

Can you please open a bug at the poppler bugtracker:

    https://gitlab.freedesktop.org/poppler/poppler/-/issues

Thank you!