Environment:
- OS: MacOS Monterey (issue is present on older OSs as well)
- QZ Tray: 2.1.6
- Config:
width: 2.25, height: 1.25, units: 'in'
- Java: Adoptium OpenJDK 11, Hotspot
- Printer: Zebra GK420d
- Paper/Label: 2.25x1.25 label stock (Printer is calibrated for this size)
- PDF: Attached here: label3.pdf
Expected results
PDF prints to label stock, scaled and positioned correctly
Actual results
PDF gets cut off on the left and right, printing exactly 1.25" wide and leaving the sides blank (landscape dimensions cropped to portrait dimensions)
Background
Support has gotten used to swapping height and width to get certain small PDFs to print correctly on Mac, but in this case, both the label stock and the source PDF have a width that is greater than the height, and QZ-Tray (on Mac) doesn't seem to honor this, continually using the height parameter for the width and producing an undesirable result.
Additional information
This is exclusive to MacOS, and affects image printing as well as PDF printing. Both Linux and Windows produce expected results.
Upstream bug report: https://bugs.openjdk.org/browse/JDK-8372952