Skip to content

Commit

Permalink
pcorlessGH-216 Changes some property names
Browse files Browse the repository at this point in the history
  • Loading branch information
gtache committed Nov 7, 2022
1 parent c1eeb29 commit 097b070
Showing 1 changed file with 2 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5910,22 +5910,8 @@ private void callOnFilteredAnnotations(final AnnotationFilter filter, final Cons
}

private static EmptyPagesFilter getEmptyPagesFilter() {
final String minRatioStr = System.getProperty("icepdf.filter.pages.empty.ratio", "0.001");
double minRatio;
try {
minRatio = Double.parseDouble(minRatioStr);
} catch (final NumberFormatException e) {
logger.warning("Not a valid double value : " + minRatioStr);
minRatio = 0.001;
}
final String whiteFloorStr = System.getProperty("icepdf.filter.pages.empty.white.floor", "240");
int whiteFloor;
try {
whiteFloor = Integer.parseInt(whiteFloorStr);
} catch (final NumberFormatException e) {
logger.warning("Not a valid int value : " + whiteFloorStr);
whiteFloor = 240;
}
final double minRatio = Defs.doubleProperty("org.icepdf.ri.viewer.filters.empty.pages.ratio", 0.005);
final int whiteFloor = Defs.intProperty("org.icepdf.ri.viewer.filters.empty.white.floor", 240);
return new EmptyPagesFilter(minRatio, whiteFloor);
}
}

0 comments on commit 097b070

Please sign in to comment.