Skip to content

Commit

Permalink
Don't provide an explicit dpi on vector pdf prints
Browse files Browse the repository at this point in the history
  • Loading branch information
Berenz committed Sep 24, 2020
1 parent b260c70 commit 3b77e06
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 @@ -152,8 +152,8 @@ public void print(PrintOutput output, PrintOptions options) throws PrinterExcept

if (!pxlOpts.isRasterize()) {
if (pxlOpts.getDensity() > 0) {
//rasterization is automatically performed upon supplying a density, warn user if they aren't expecting this
log.warn("Supplying a print density for PDF printing rasterizes the document.");
// clear density for vector prints (applied via print attributes instead)
useDensity = 0;
} else if (SystemUtilities.isMac() && Constants.JAVA_VERSION.compareWithBuildsTo(Version.valueOf("1.8.0+121")) < 0) {
log.warn("OSX systems cannot print vector PDF's, forcing raster to prevent crash.");
useDensity = options.getDefaultOptions().getDensity();
Expand Down

0 comments on commit 3b77e06

Please sign in to comment.