Skip to content

Commit

Permalink
Force html prints to be rasterized too
Browse files Browse the repository at this point in the history
  • Loading branch information
Berenz committed Feb 26, 2020
1 parent 066b0c6 commit d0b320c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qz/printer/PrintOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ public PrintOptions(JSONObject configOpts, PrintOutput output, PrintingUtilities
defOptions.density = 60000d / psOptions.getUnits().getDPIUnits();
}
}
if ((psOptions.isRasterize() || type == PrintingUtilities.Type.IMAGE) && psOptions.getDensity() == 0) {
if ((psOptions.isRasterize() || type == PrintingUtilities.Type.IMAGE || type == PrintingUtilities.Type.HTML) && psOptions.getDensity() == 0) {
psOptions.density = defOptions.density;
}

Expand Down

0 comments on commit d0b320c

Please sign in to comment.