MAX_SAFE_DPI

This commit is contained in:
Anthony Stirling 2025-07-02 16:04:03 +01:00
parent 3d3387e62d
commit a6fee5e90f

View File

@ -145,7 +145,7 @@ public class PdfUtils {
throws IOException, Exception {
// Validate and limit DPI to prevent excessive memory usage
final int MAX_SAFE_DPI = 300; // Maximum safe DPI to prevent memory issues
final int MAX_SAFE_DPI = 500; // Maximum safe DPI to prevent memory issues
if (DPI > MAX_SAFE_DPI) {
throw ExceptionUtils.createIllegalArgumentException(
"error.dpiExceedsLimit",