You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2019/01/18 13:34:00 UTC
[jira] [Commented] (PDFBOX-4435) Poor quality printing of PDF label
[ https://issues.apache.org/jira/browse/PDFBOX-4435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16746286#comment-16746286 ]
Tilman Hausherr commented on PDFBOX-4435:
-----------------------------------------
I suspect this: the QR code is an RGB image and has /Interpolate set. So java interpolates and creates some colors between black and white. This looks weird on a b/w printer. So what you could do:
- convert the QR image to a b/w image
or
- don't print directly, instead use PDFBox to convert to a b/w image (there is an option for this) and print that image
or
- modify PDFBox so that in PageDrawer.java, force {{graphics.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_NEAREST_NEIGHBOR);}}
or
- remove the interpolate setting from the QR code
or
- change PDFPrintable so that when dpi is non zero, a bitonal image is used and not an ARGB image
> Poor quality printing of PDF label
> ----------------------------------
>
> Key: PDFBOX-4435
> URL: https://issues.apache.org/jira/browse/PDFBOX-4435
> Project: PDFBox
> Issue Type: Bug
> Components: Rendering
> Affects Versions: 2.0.3, 2.0.13, 2.0.14
> Environment: Lubuntu 16.04, GK420d printer, CL-S400DT(Z) printer
> Reporter: David Hancock
> Priority: Major
> Attachments: label-pdfbox-1-8.jpg, label-pdfbox-2-0.jpg, label.pdf
>
>
> Hello,
> I'm experiencing poor quality printing of PDF courier labels with PDFBox when printing from the command line with the following command:
> {noformat}
> java -jar pdfbox-app-*.jar PrintPDF label.pdf
> {noformat}
> This makes scanning the QR code on these labels troublesome.
> I've tried versions 2.0.3, 2.0.13, 2.0.14 (SNAPSHOT) and all produce the same quality issue. Interestingly version 1.8.16 does not appear to suffer from this issue.
> I have tried 2 different thermal printers, a GK420d and a CITIZEN CL-S400DT(Z) and both output the same.
> When printing the label directly from the GNOME document viewer (Evince) the label prints clearly on both printers.
> Please find examples of these labels attached.
> Can anything be done to prevent these quality issues?
> Thanks,
> David
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org