Skip to content

Commit

Permalink
Enable Mac PrintRequestAttribute for Java8u162
Browse files Browse the repository at this point in the history
Oracle was able to get the patch into the January release.
  • Loading branch information
tresf committed Dec 7, 2017
1 parent d79b3ff commit 2873666
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qz/printer/action/PrintPDF.java
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ public void print(PrintOutput output, PrintOptions options) throws PrinterExcept
PrintRequestAttributeSet attributes = applyDefaultSettings(pxlOpts, job.getPageFormat(null));

// Disable attributes per https://github.com/qzind/tray/issues/174
if (SystemUtilities.isMac() && Constants.JAVA_VERSION.lessThan(Version.valueOf("1.8.0-172"))) {
log.warn("MacOS and Java < 8u172 cannot use attributes with PDF prints, disabling");
if (SystemUtilities.isMac() && Constants.JAVA_VERSION.lessThan(Version.valueOf("1.8.0-162"))) {
log.warn("MacOS and Java < 8u162 cannot use attributes with PDF prints, disabling");
attributes.clear();
}

Expand Down

0 comments on commit 2873666

Please sign in to comment.