Bug 57294 - [PATCH] wrong line widths in monochrome mode
Summary: [PATCH] wrong line widths in monochrome mode
Status: RESOLVED FIXED
Alias: None
Product: poppler
Classification: Unclassified
Component: splash backend (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-19 20:53 UTC by Matthias Kramm
Modified: 2012-12-08 22:14 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
patch against git HEAD (942 bytes, text/plain)
2012-11-19 20:53 UTC, Matthias Kramm
Details
PDF file exhibiting the bug (2.74 KB, application/pdf)
2012-12-01 17:00 UTC, Matthias Kramm
Details

Description Matthias Kramm 2012-11-19 20:53:47 UTC
Created attachment 70278 [details]
patch against git HEAD

For zoom levels that scale the page below sqrt(2) of the original resolution, monochrome line widths are wrong (snapped back to one pixel wide.)

The broken code in question came from xpdf-3.03, and Derek Noonburg tells me that the next version of xpdf will have a fix (similar to the attached one) as well.

Patch is attached.
Comment 1 Albert Astals Cid 2012-12-01 01:09:04 UTC
Hi Matthias, thanks for the patch!

Can you attach a pdf file and a pdftoppm command line to show the error happening so we can see what kind of the fix the patch does?
Comment 2 Matthias Kramm 2012-12-01 17:00:56 UTC
Created attachment 70884 [details]
PDF file exhibiting the bug
Comment 3 Matthias Kramm 2012-12-01 17:02:15 UTC
Hi Albert- sure!
This command line causes the bug to appear:

pdftoppm -r 72 -mono layers.pdf > test.ppm

(the two diagonal cyan strokes become 1 pixel wide with -r 72)
Comment 4 Albert Astals Cid 2012-12-08 22:14:22 UTC
Commited, thanks for the patch.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.