[jira] [Comment Edited] (PDFBOX-4435) Poor quality printing of PDF label

2019-01-21 Thread Tres Finocchiaro (JIRA)


[ 
https://issues.apache.org/jira/browse/PDFBOX-4435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16748261#comment-16748261
 ] 

Tres Finocchiaro edited comment on PDFBOX-4435 at 1/21/19 11:03 PM:


That article claims that there are performance issues, not that it's 
unsupported.  Are they the same issue (I assume so, 27 minutes to print is 
atrocious :))

Is there something that an Oracle subscriber can do to help?  Today, 
coincidentally, I just received another, separate client report out of memory 
issues on another, unrelated PDF and when I test it, I can confirm that 
PDFBOX/Java prints it to raster and it uses over 1GB of ram to print.  If it's 
not an upstream bug, perhaps we can add some compat code to disable 
transparency altogether?

If it is upstream, I'm [not afraid to reach out to Oracle for 
support|https://issues.apache.org/jira/browse/PDFBOX-2682?focusedCommentId=15982293&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-15982293]
 (again :)).


was (Author: tresf):
That article claims that there are performance issues, not that it's 
unsupported.  Are they the same issue (I assume so, 27 minutes to print is 
atrocious :))

Is there something that an Oracle subscriber can do to help?  Today, 
coincidentally, I just received another, separate client report out of memory 
issues on another, unrelated PDF and when I test it, I can confirm that 
PDFBOX/Java prints it to raster and it uses over 1GB of ram to print.  If it's 
not an upstream bug, perhaps we can add some compat code to disable 
transparency altogether?

If it is upstream, I'm not afraid to reach out to Oracle for support (again :)).

> 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
> Fix For: 2.0.14, 3.0.0 PDFBox
>
> Attachments: before_after.png, comparison.png, label-pdfbox-1-8.jpg, 
> label-pdfbox-2-0.jpg, label.pdf, label.png
>
>
> 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-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Comment Edited] (PDFBOX-4435) Poor quality printing of PDF label

2019-01-21 Thread Tres Finocchiaro (JIRA)


[ 
https://issues.apache.org/jira/browse/PDFBOX-4435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16748147#comment-16748147
 ] 

Tres Finocchiaro edited comment on PDFBOX-4435 at 1/21/19 6:39 PM:
---

It's definitely rasterizing.  Here's a comparison (PDFBOX 2.0.13, Java 8u192, 
Windows 10)

[^comparison.png]
 * PDFBOX printed through PDFCreator = rasterized
 * Preview in Acrobat = vector
 * Acrobat printed through PDFCreator = vector

Command line: 

{{*> java -jar pdfbox-app-2.0.13.jar PrintPDF -printerName PDFCreator 
label.pdf*}}

 
{quote}I assume you wrote this from looking at the result PDFs when printing to 
PDF.
{quote}
Correct.


was (Author: tresf):
It's definitely rasterizing.  Here's a comparison (PDFBOX 2.0.13, Java 8u192, 
Windows 10)

[^comparison.png]
 * PDFBOX printed through PDFCreator = rasterized
 * Preview in Acrobat = vector
 * Acrobat printed through PDFCreator = vector

Command line: 

{{*> java -jar pdfbox-app-2.0.13.jar PrintPDF -printerName PDFCreator 
label.pdf*}}

> 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
> Fix For: 2.0.14, 3.0.0 PDFBox
>
> Attachments: before_after.png, comparison.png, label-pdfbox-1-8.jpg, 
> label-pdfbox-2-0.jpg, label.pdf, label.png
>
>
> 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-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Comment Edited] (PDFBOX-4435) Poor quality printing of PDF label

2019-01-21 Thread Tres Finocchiaro (JIRA)


[ 
https://issues.apache.org/jira/browse/PDFBOX-4435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16748147#comment-16748147
 ] 

Tres Finocchiaro edited comment on PDFBOX-4435 at 1/21/19 6:36 PM:
---

It's definitely rasterizing.  Here's a comparison (PDFBOX 2.0.13, Java 8u192, 
Windows 10)

[^comparison.png]
 * PDFBOX printed through PDFCreator = rasterized
 * Preview in Acrobat = vector
 * Acrobat printed through PDFCreator = vector

Command line: 

{{*> java -jar pdfbox-app-2.0.13.jar PrintPDF -printerName PDFCreator 
label.pdf*}}


was (Author: tresf):
It's definitely rasterizing.  Here's a comparison (PDFBOX 2.0.13, Java 8u192, 
Windows 10)

[^comparison.png]
 * PDFBOX printed through PDFCreator = rasterized
 * Preview in Acrobat = rasterized
 * Acrobat printed through PDFCreator = rasterized.

Command line: 

{{*> java -jar pdfbox-app-2.0.13.jar PrintPDF -printerName PDFCreator 
label.pdf*}}

> 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
> Fix For: 2.0.14, 3.0.0 PDFBox
>
> Attachments: before_after.png, comparison.png, label-pdfbox-1-8.jpg, 
> label-pdfbox-2-0.jpg, label.pdf, label.png
>
>
> 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-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Comment Edited] (PDFBOX-4435) Poor quality printing of PDF label

2019-01-19 Thread Tilman Hausherr (JIRA)


[ 
https://issues.apache.org/jira/browse/PDFBOX-4435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16747031#comment-16747031
 ] 

Tilman Hausherr edited comment on PDFBOX-4435 at 1/19/19 11:51 AM:
---

My current thought is this:
 - in PageDrawer, setRenderingHints() should get from a map that contains the 
rendering hints. This map is passed in PageDrawerParameters. If that map is 
null, use the current default.
 - in PDFRenderer, initialize the map as it is done today (with special setting 
for b/w), and also offer getter / setter.
 - in PDFPrintable, offset a new option (getter / setter) "forceBitonal" which 
will pass the appropriate map. Alternatively, offer getter/setter for map. (The 
"simple" option would be easier to understand, and one could also force the use 
of a bitonal image when the dpi option is set. The dpi option (force the use of 
an image) has often been used with label printers.

[~tresf] does this sound good for you and your clients?


was (Author: tilman):
My current thought is this:
 - in PageDrawer, setRenderingHints() should get from a map that contains the 
rendering hints. This map is passed in PageDrawerParameters. If that map is 
null, use the current default.
 - in PDFRenderer, initialize the map as it is done today (with special setting 
for b/w), and also offer getter / setter.
 - in PDFPrintable, offset a new option (getter / setter) "forceBitonal" which 
will pass the appropriate map. Alternatively, also offer getter/setter for map. 
(The "simple" option would be easier to understand, and one could also force 
the use of a bitonal image when the dpi option is set. The dpi option (force 
the use of an image) has often been used with label printers.


 [~tresf] does this sound good for you and your clients?

> 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
> Fix For: 2.0.14, 3.0.0 PDFBox
>
> Attachments: before_after.png, label-pdfbox-1-8.jpg, 
> label-pdfbox-2-0.jpg, label.pdf, label.png
>
>
> 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-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Comment Edited] (PDFBOX-4435) Poor quality printing of PDF label

2019-01-19 Thread Tilman Hausherr (JIRA)


[ 
https://issues.apache.org/jira/browse/PDFBOX-4435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16747031#comment-16747031
 ] 

Tilman Hausherr edited comment on PDFBOX-4435 at 1/19/19 11:29 AM:
---

My current thought is this:
 - in PageDrawer, setRenderingHints() should get from a map that contains the 
rendering hints. This map is passed in PageDrawerParameters. If that map is 
null, use the current default.
 - in PDFRenderer, initialize the map as it is done today (with special setting 
for b/w), and also offer getter / setter.
 - in PDFPrintable, offset a new option (getter / setter) "forceBitonal" which 
will pass the appropriate map. Alternatively, also offer getter/setter for map. 
(The "simple" option would be easier to understand, and one could also force 
the use of a bitonal image when the dpi option is set. The dpi option (force 
the use of an image) has often been used with label printers.


 [~tresf] does this sound good for you and your clients?


was (Author: tilman):
My current thought is this:
- in PageDrawer, setRenderingHints() should get from a map that contains the 
rendering hints. This map is passed in PageDrawerParameters. If that map is 
null, use the current default.
- in PDFRenderer, initialize the map as it is done today (with special setting 
for b/w), and also offer getter / setter.
- in PDFPrintable, offset a new option (getter / setter) "forceBitonal" which 
will pass the appropriate map. Alternatively, also offer getter/setter for map. 
(The "simple" option would be easier to understand, and one could also force 
the use of a bitonal image when the dpi option is set. The dpi option (force 
the use of an image) has often been used with label printers.
[~tresf] does this sound good for you and your clients?

> 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
> Fix For: 2.0.14, 3.0.0 PDFBox
>
> Attachments: before_after.png, label-pdfbox-1-8.jpg, 
> label-pdfbox-2-0.jpg, label.pdf, label.png
>
>
> 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-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Comment Edited] (PDFBOX-4435) Poor quality printing of PDF label

2019-01-19 Thread Tilman Hausherr (JIRA)


[ 
https://issues.apache.org/jira/browse/PDFBOX-4435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16746623#comment-16746623
 ] 

Tilman Hausherr edited comment on PDFBOX-4435 at 1/19/19 11:27 AM:
---

Yeah, this is all tricky… in the meantime I tried to remove the /Interpolate 
flag and print, and it changes nothing - because "isScaledUp" is decided only 
related to the CTM, not related to the actual zoom, for whatever reason.

Another thing I tried was to detect whether the target is b/w but I failed that 
one too - the printer graphics device presents itself as supporting color.

The best would be to tell PageDrawer that the target is b/w; but this must be 
passed through PageDrawerParameters, which must be set in the PDFRenderer, 
which must be set in -PDFPageable- PDFPrintable. This sounds complex.


was (Author: tilman):
Yeah, this is all tricky… in the meantime I tried to remove the /Interpolate 
flag and print, and it changes nothing - because "isScaledUp" is decided only 
related to the CTM, not related to the actual zoom, for whatever reason.

Another thing I tried was to detect whether the target is b/w but I failed that 
one too - the printer graphics device presents itself as supporting color.

The best would be to tell PageDrawer that the target is b/w; but this must be 
passed through PageDrawerParameters, which must be set in the PDFRenderer, 
which must be set in PDFPageable. This sounds complex.

> 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
> Fix For: 2.0.14, 3.0.0 PDFBox
>
> Attachments: before_after.png, label-pdfbox-1-8.jpg, 
> label-pdfbox-2-0.jpg, label.pdf, label.png
>
>
> 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-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Comment Edited] (PDFBOX-4435) Poor quality printing of PDF label

2019-01-18 Thread Tres Finocchiaro (JIRA)


[ 
https://issues.apache.org/jira/browse/PDFBOX-4435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16746577#comment-16746577
 ] 

Tres Finocchiaro edited comment on PDFBOX-4435 at 1/18/19 6:51 PM:
---

> "I can confirm the label prints fine when converting it to an image first as 
> per your last comment and printing via OS. My issue is we indirectly use 
> PDFBox though QZ-Tray for printing which means I've got no control over how 
> the printing of this PDF is handled internally.  I'll raise a ticket with 
> them and see if they can make use of any of the suggestions here."

 

The 3rd party app uses the PDFBOX API directly.  Coercing a good black/white 
image through a 600dpi command line render won't make it into the 3rd party 
product (I'm the developer).  We're always willing to add flags (or a code 
shim) to fix and/or advanced API settings, but the issue here appears to be 
that the PDF is force PDFBOX to a rasterized print which needs to be fixed 
either in the PDF or in the render.


was (Author: tresf):
[quote]"I can confirm the label prints fine when converting it to an image 
first as per your last comment and printing via OS. My issue is we indirectly 
use PDFBox though QZ-Tray for printing which means I've got no control over how 
the printing of this PDF is handled internally.  I'll raise a ticket with them 
and see if they can make use of any of the suggestions here."[/quote]

 

The 3rd party app uses the PDFBOX API directly.  Coercing a good black/white 
image through a 600dpi command line render won't make it into the 3rd party 
product (I'm the developer).  We're always willing to add flags (or a code 
shim) to fix and/or advanced API settings, but the issue here appears to be 
that the PDF is force PDFBOX to a rasterized print which needs to be fixed 
either in the PDF or in the render.

> 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, 
> label.png
>
>
> 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-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Comment Edited] (PDFBOX-4435) Poor quality printing of PDF label

2019-01-18 Thread Tres Finocchiaro (JIRA)


[ 
https://issues.apache.org/jira/browse/PDFBOX-4435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16746577#comment-16746577
 ] 

Tres Finocchiaro edited comment on PDFBOX-4435 at 1/18/19 6:51 PM:
---

[quote]"I can confirm the label prints fine when converting it to an image 
first as per your last comment and printing via OS. My issue is we indirectly 
use PDFBox though QZ-Tray for printing which means I've got no control over how 
the printing of this PDF is handled internally.  I'll raise a ticket with them 
and see if they can make use of any of the suggestions here."[/quote]

 

The 3rd party app uses the PDFBOX API directly.  Coercing a good black/white 
image through a 600dpi command line render won't make it into the 3rd party 
product (I'm the developer).  We're always willing to add flags (or a code 
shim) to fix and/or advanced API settings, but the issue here appears to be 
that the PDF is force PDFBOX to a rasterized print which needs to be fixed 
either in the PDF or in the render.


was (Author: tresf):
I can confirm the label prints fine when converting it to an image first 
as per your last comment and printing via OS. My issue is we indirectly use 
PDFBox though QZ-Tray for printing which means I've got no control over how the 
printing of this PDF is handled internally.  I'll raise a ticket with them and 
see if they can make use of any of the suggestions here.

 

The 3rd party app uses the PDFBOX API directly.  Coercing a good black/white 
image through a 600dpi command line render won't make it into the 3rd party 
product (I'm the developer).  We're always willing to add flags (or a code 
shim) to fix and/or advanced API settings, but the issue here appears to be 
that the PDF is force PDFBOX to a rasterized print which needs to be fixed 
either in the PDF or in the render.

> 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, 
> label.png
>
>
> 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-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Comment Edited] (PDFBOX-4435) Poor quality printing of PDF label

2019-01-18 Thread David Hancock (JIRA)


[ 
https://issues.apache.org/jira/browse/PDFBOX-4435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16746372#comment-16746372
 ] 

David Hancock edited comment on PDFBOX-4435 at 1/18/19 2:56 PM:


Thanks for the reply [~tilman].

Would any of the above affect strokes?

I ask as the entire label prints this way not just the QR code, you can see the 
stroked lines and text in the images differ between v1.8 and v2 also.


was (Author: david.hancock):
Thanks for the reply [~tilman].

 

Would any of the above affect strokes?

I ask as the entire label prints this way not just the QR code, you can see the 
stroked lines and text in the images differ between v1.8 and v2 also.

> 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-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org