tray icon indicating copy to clipboard operation
tray copied to clipboard

PDF to Zebra printer is blurry and/or poor quality

Open lite1979 opened this issue 5 years ago • 6 comments

Using 2.1 RC7, Windows 10, Zebra GK420d printer, and compared to Adobe results, QZ-Tray's print results are poor by comparison.

Printing to "Microsoft Print to PDF", the resulting PDF is not blurry, so I suspect either the Zebra driver or the font associated with the print job vs. printer capability in this case.

Drug-print.pdf

lite1979 avatar Oct 17 '19 20:10 lite1979

Here are the details of my testing:

  • The PDF is confirmed to be printing vector (rasterize: false is being honored), but the font is curtailing at such a small size. Making it bold will help slightly. I recommend the label is redesigned so that it prints better. I feel there's room for improvement in regards to print quality, but it would be an upstream issue for PDFBOX.
  • I've tested turning off dithering in the driver settings and it did not seem to help this particular problem.
  • I've tested the PDF on the latest PDFBOX release and it has the same results.

In summary what worked best (still not the same quality as Adobe) was setting the following in the ZDesigner driver:

  • Darkness: 15
  • Speed: 1.5/s

If we decide to reopen this, it will need to be filed upstream. The tests were done using PDFBOX on command line so QZ Tray is not a factor.

Closing as wontfix for now. We may have to revisit this.

tresf avatar Nov 11 '19 19:11 tresf

We'll take a deeper dive into this. Assigning to @bberenz and @lite1979.

@bberenz can you provide Lite with a unit test that does the following:

  1. Prints something like a JLabel text, optimized for thermal printing (aliasing off)
  2. Prints a PDF text of same text and size, optimized for thermal printing

Then we'll raise the concerns to PDFBOX.

tresf avatar Dec 11 '19 14:12 tresf

https://issues.apache.org/jira/browse/PDFBOX-4709

lite1979 avatar Dec 13 '19 02:12 lite1979

Unfortunately, this issue has been labeled as "won't fix" by Apache, and my bug was labeled as a duplicate of this one:

https://issues.apache.org/jira/browse/PDFBOX-3293

The recommendation is to use another font; the user that raised the issue for the link above lists his fonts as NOTO CJK and CNS11643

lite1979 avatar Dec 13 '19 03:12 lite1979

Per recommendation of PDFBOX, filed upstream bug report: https://github.com/AdoptOpenJDK/openjdk-support/issues/45

tresf avatar Jan 21 '20 21:01 tresf

Update:

  • OpenJDK has this patched since JDK16, backported to JDK11 since 11.0.11: https://bugs.openjdk.org/browse/JDK-8256264
  • PDFBOX changed their API per https://issues.apache.org/jira/browse/PDFBOX-5093 which allows a workaround.
    • This exposed this bug with Calbri font (Patched in JDK17 and backported to JDK11 since 11.0.13) https://bugs.openjdk.org/browse/JDK-8265761.

tresf avatar Aug 02 '22 15:08 tresf

Initial integration is partially broken... For some reason when added to QZ Tray, the page is cut off half-way. image

tresf avatar Apr 02 '23 17:04 tresf

~~We finally have a build for testing: https://github.com/tresf/tray/releases/download/v2.2.3/qz-tray-2.2.2+PDFFONT1-x86_64.exe.~~

New build: https://github.com/tresf/tray/releases/download/v2.2.3/qz-tray-2.2.2-PDFFONT5-x86_64.exe

tresf avatar Apr 18 '23 19:04 tresf

Closed via #1108

tresf avatar Jun 22 '23 06:06 tresf