Skip to content

Commit

Permalink
Add library to handle bad image data (qzind#706)
Browse files Browse the repository at this point in the history
Add library to handle bad image data
Don't provide an explicit dpi on vector pdf prints
Closes qzind#693, qzind#715
  • Loading branch information
Brett Berenz authored Sep 28, 2020
1 parent b299027 commit a6b850b
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 2 deletions.
Binary file added lib/imaging/common-image-3.6.jar
Binary file not shown.
Binary file added lib/imaging/common-io-3.6.jar
Binary file not shown.
Binary file added lib/imaging/common-lang-3.6.jar
Binary file not shown.
Binary file added lib/imaging/imageio-core-3.6.jar
Binary file not shown.
Binary file added lib/imaging/imageio-jpeg-3.6.jar
Binary file not shown.
Binary file added lib/imaging/imageio-metadata-3.6.jar
Binary file not shown.
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 a6b850b

Please sign in to comment.