Skip to content

Commit

Permalink
Don't set the bypass parameter.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
datalogics-josepha committed May 28, 2024
1 parent 92635dc commit cc9e5f8
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit cc9e5f8

Please sign in to comment.