Skip to content

Commit fb24082

Browse files
committed
PDFBOX-6118: avoid IllegalArgumentException if rasterDpi is 0
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1930306 13f79535-47bb-0310-9956-ffa450edef68
1 parent daf8edc commit fb24082

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pdfbox/src/main/java/org/apache/pdfbox/printing/PDFPrintable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ public int print(Graphics graphics, PageFormat pageFormat, int pageIndex)
267267
// rasterize to bitmap (optional)
268268
Graphics2D printerGraphics = null;
269269
BufferedImage image = null;
270-
if (dpi > 0 || dpi == RASTERIZE_DPI_AUTO)
270+
if (rasterDpi > 0)
271271
{
272272
LOG.debug("dpi set to {}", rasterDpi);
273273
float dpiScale = rasterDpi / 72;

0 commit comments

Comments
 (0)