From cc9e5f837d876033f2efe88ae1fa565ada01bf2a Mon Sep 17 00:00:00 2001 From: Joseph Argento Date: Tue, 28 May 2024 16:26:25 -0500 Subject: [PATCH] Don't set the bypass parameter. Customer found a stride error opening a particular PDF but more generally it seems to happen for any PDF because rendering fails. If the bypass copy permission is set, but the license string hasn't been set, it errors out accordingly. The stock sample shouldn't be setting this. --- .../datalogics/pdfl/JavaViewer/Presentation/Cache/PageCache.java | 1 - 1 file changed, 1 deletion(-) diff --git a/Display/JavaViewer/src/main/java/com/datalogics/pdfl/JavaViewer/Presentation/Cache/PageCache.java b/Display/JavaViewer/src/main/java/com/datalogics/pdfl/JavaViewer/Presentation/Cache/PageCache.java index fa5f7f25..49638e31 100644 --- a/Display/JavaViewer/src/main/java/com/datalogics/pdfl/JavaViewer/Presentation/Cache/PageCache.java +++ b/Display/JavaViewer/src/main/java/com/datalogics/pdfl/JavaViewer/Presentation/Cache/PageCache.java @@ -285,7 +285,6 @@ public PageSoBigException(String message) { params.setFlags(EnumSet.of(DrawFlags.DO_LAZY_ERASE, DrawFlags.USE_ANNOT_FACES)); params.setSmoothFlags(EnumSet.of(SmoothFlags.IMAGE, SmoothFlags.LINE_ART, SmoothFlags.TEXT)); params.setEnableBlackPointCompensation(true); - params.setBypassCopyPerm(true); // Draw. We get a byte array that has the samples in left-right top-bottom order. may throw OutOfMemoryError byte[] values = null; try {