Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 461900 - app-text/poppler-0.21.3+: blurry printing of PDF ticket barcodes
Summary: app-text/poppler-0.21.3+: blurry printing of PDF ticket barcodes
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Maciej Mrozowski
URL: https://bugs.freedesktop.org/show_bug...
Whiteboard:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2013-03-16 07:54 UTC by Michał Górny
Modified: 2013-03-17 10:50 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-03-16 07:54:12 UTC
After upgrading to poppler-0.22.1, barcodes on tickets become blurry. The same issue happens with .22.2, and does not with .20.5. Printing is done with evince, through CUPS to lprng server which emulates a PostScript printer.

I had a similar issue before and (if I recall right) it was because of cups-filters using ghostscript rather than poppler's pdftops. But now it happens on the client rather than the print server, and seems to be caused solely by poppler.

After converting the PDF file to PostScript with pdftops and printing that, the barcode is fine. In the 'initial zoom' evince shows the PDF blurred too but after zooming in, the barcode becomes sharp. Interesting thing is that in the 'print preview', even after zooming the barcode is blurry (same as in the print).

I have to leave now. If you need more information, please ping me later. If you'd like to get a test document, please ping me privately since the tickets contain some document numbers.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-03-16 17:01:37 UTC
Some new facts:

1) print preview is blurry even with older versions. So the only way I can reproduce this is by printing...

2) i was able to narrow it down to poppler-0.21.3. The NEWS file states:

Release 0.21.3
        core:
         * Splash: Implement bilinear image scaling (Bug #22138)
         * CairoOutputDev: Update fill and stroke color in startPage (Bug #54526)
         * Fix GooString::insert()
         * Allow large chars in TextPage
         * Fix crash on ActualText::end
         * Don't use memcpy to copy classes
         * Fix warnings

        glib:
         * Check if words end with spaces (Bug #54504)
         * Ensure text is only computed on first render
         * Fix warnings while generating introspection file
         * Fix returns tag in PopplerAttachmentSaveFunc api doc
         * Minor demo fixes

and the bilinear scaler sounds like a good way to mess this up.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-03-16 17:12:19 UTC
Yep, bisected it down to:

commit a97aead193a927b91a4e33d7b5d2ba7179e664df
Author: Adrian Johnson <ajohnson@redneon.com>
Date:   Fri Nov 30 21:30:19 2012 +0100

    Splash: Implement bilinear image scaling
    
    Bug #22138
Comment 3 Franz Trischberger 2013-03-17 06:27:27 UTC
You can use a Qt4-viewer to check this without printing; poppler-qt4 uses Splash for displaying. Either take the builtin demo <poppler_build_dir>/qt4/demos/poppler_qt4viewer
Or take qpdfview.

If you don't want to make your PDFs public just create your own:
http://www2.informatik.hu-berlin.de/~ploetz/latexbarcode.html
Comment 4 Franz Trischberger 2013-03-17 08:20:39 UTC
Sry... Links in the link don't work.
Furthermore it seems to be about rendering images not scalable lines.
I played around with inkscape, generated pdf that include bitmap graphics and scalable ones - but can't reproduce your issue (printing with okular using poppler-0.22.2 and 0.20.5)
I will try with evince (need to install it first).
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-03-17 08:42:55 UTC
(In reply to comment #3)
> You can use a Qt4-viewer to check this without printing; poppler-qt4 uses
> Splash for displaying. Either take the builtin demo
> <poppler_build_dir>/qt4/demos/poppler_qt4viewer
> Or take qpdfview.
> 
> If you don't want to make your PDFs public just create your own:
> http://www2.informatik.hu-berlin.de/~ploetz/latexbarcode.html

I'm afraid this is something specific to those files (I have no idea how they're generating them). I've attached an example file in the upstream bug.
Comment 6 Andreas K. Hüttel archtester gentoo-dev 2013-03-17 10:50:08 UTC
Fixed in app-text/poppler-0.22.2-r1