mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-08-26 22:29:24 +00:00
lang fixes
This commit is contained in:
parent
9ebb4a3c31
commit
cbdc139838
@ -149,7 +149,7 @@ public class PdfUtils {
|
|||||||
if (DPI > MAX_SAFE_DPI) {
|
if (DPI > MAX_SAFE_DPI) {
|
||||||
throw ExceptionUtils.createIllegalArgumentException(
|
throw ExceptionUtils.createIllegalArgumentException(
|
||||||
"error.dpiExceedsLimit",
|
"error.dpiExceedsLimit",
|
||||||
"DPI value %d exceeds maximum safe limit of %d. High DPI values can cause memory issues and crashes. Please use a lower DPI value.",
|
"DPI value {0} exceeds maximum safe limit of {1}. High DPI values can cause memory issues and crashes. Please use a lower DPI value.",
|
||||||
DPI,
|
DPI,
|
||||||
MAX_SAFE_DPI);
|
MAX_SAFE_DPI);
|
||||||
}
|
}
|
||||||
@ -186,7 +186,7 @@ public class PdfUtils {
|
|||||||
.contains("Maximum size of image exceeded")) {
|
.contains("Maximum size of image exceeded")) {
|
||||||
throw ExceptionUtils.createIllegalArgumentException(
|
throw ExceptionUtils.createIllegalArgumentException(
|
||||||
"error.pageTooBigForDpi",
|
"error.pageTooBigForDpi",
|
||||||
"PDF page %d is too large to render at %d DPI. Please try a lower DPI value (recommended: 150 or less).",
|
"PDF page {0} is too large to render at {1} DPI. Please try a lower DPI value (recommended: 150 or less).",
|
||||||
i + 1,
|
i + 1,
|
||||||
DPI);
|
DPI);
|
||||||
}
|
}
|
||||||
@ -231,7 +231,7 @@ public class PdfUtils {
|
|||||||
.contains("Maximum size of image exceeded")) {
|
.contains("Maximum size of image exceeded")) {
|
||||||
throw ExceptionUtils.createIllegalArgumentException(
|
throw ExceptionUtils.createIllegalArgumentException(
|
||||||
"error.pageTooBigExceedsArray",
|
"error.pageTooBigExceedsArray",
|
||||||
"PDF page %d is too large to render at %d DPI. The resulting image would exceed Java's maximum array size. Please try a lower DPI value (recommended: 150 or less).",
|
"PDF page {0} is too large to render at {1} DPI. The resulting image would exceed Java's maximum array size. Please try a lower DPI value (recommended: 150 or less).",
|
||||||
i + 1,
|
i + 1,
|
||||||
DPI);
|
DPI);
|
||||||
}
|
}
|
||||||
@ -272,7 +272,7 @@ public class PdfUtils {
|
|||||||
.contains("Maximum size of image exceeded")) {
|
.contains("Maximum size of image exceeded")) {
|
||||||
throw ExceptionUtils.createIllegalArgumentException(
|
throw ExceptionUtils.createIllegalArgumentException(
|
||||||
"error.pageTooBigForDpi",
|
"error.pageTooBigForDpi",
|
||||||
"PDF page %d is too large to render at %d DPI. Please try a lower DPI value (recommended: 150 or less).",
|
"PDF page {0} is too large to render at {1} DPI. Please try a lower DPI value (recommended: 150 or less).",
|
||||||
i + 1,
|
i + 1,
|
||||||
DPI);
|
DPI);
|
||||||
}
|
}
|
||||||
@ -305,7 +305,7 @@ public class PdfUtils {
|
|||||||
&& e.getMessage().contains("Maximum size of image exceeded")) {
|
&& e.getMessage().contains("Maximum size of image exceeded")) {
|
||||||
throw ExceptionUtils.createIllegalArgumentException(
|
throw ExceptionUtils.createIllegalArgumentException(
|
||||||
"error.pageTooBigForDpi",
|
"error.pageTooBigForDpi",
|
||||||
"PDF page %d is too large to render at %d DPI. Please try a lower DPI value (recommended: 150 or less).",
|
"PDF page {0} is too large to render at {1} DPI. Please try a lower DPI value (recommended: 150 or less).",
|
||||||
i + 1,
|
i + 1,
|
||||||
DPI);
|
DPI);
|
||||||
}
|
}
|
||||||
@ -356,7 +356,7 @@ public class PdfUtils {
|
|||||||
&& e.getMessage().contains("Maximum size of image exceeded")) {
|
&& e.getMessage().contains("Maximum size of image exceeded")) {
|
||||||
throw ExceptionUtils.createIllegalArgumentException(
|
throw ExceptionUtils.createIllegalArgumentException(
|
||||||
"error.pageTooBigFor300Dpi",
|
"error.pageTooBigFor300Dpi",
|
||||||
"PDF page %d is too large to render at 300 DPI. The resulting image would exceed Java's maximum array size. Please use a lower DPI value for PDF-to-image conversion.",
|
"PDF page {0} is too large to render at 300 DPI. The resulting image would exceed Java's maximum array size. Please use a lower DPI value for PDF-to-image conversion.",
|
||||||
page + 1);
|
page + 1);
|
||||||
}
|
}
|
||||||
throw e;
|
throw e;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user