mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-08-27 06:39:24 +00:00
extra log stuff!
This commit is contained in:
parent
41dd04a4cc
commit
9e119cc891
@ -49,6 +49,7 @@ public class PdfErrorUtils {
|
|||||||
|| message.contains("Invalid dictionary, found:")
|
|| message.contains("Invalid dictionary, found:")
|
||||||
|| message.contains("AES initialization vector not fully read")
|
|| message.contains("AES initialization vector not fully read")
|
||||||
|| message.contains("BadPaddingException")
|
|| message.contains("BadPaddingException")
|
||||||
|| message.contains("Given final block not properly padded");
|
|| message.contains("Given final block not properly padded")
|
||||||
|
|| message.contains("End-of-File, expected line");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -72,7 +72,7 @@ public class SplitPDFController {
|
|||||||
pageNumbers.add(totalPages - 1);
|
pageNumbers.add(totalPages - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
log.info(
|
log.debug(
|
||||||
"Splitting PDF into pages: {}",
|
"Splitting PDF into pages: {}",
|
||||||
pageNumbers.stream().map(String::valueOf).collect(Collectors.joining(",")));
|
pageNumbers.stream().map(String::valueOf).collect(Collectors.joining(",")));
|
||||||
|
|
||||||
|
@ -226,7 +226,8 @@ function setupFileInput(chooser) {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const { isEncrypted, requiresPassword } = await decryptFile.checkFileEncrypted(file);
|
const { isEncrypted, requiresPassword } = await decryptFile.checkFileEncrypted(file);
|
||||||
if (file.type === 'application/pdf' && isEncrypted) {
|
if (file.type === 'application/pdf' && isEncrypted &&
|
||||||
|
!window.location.pathname.includes('remove-password')) {
|
||||||
decryptedFile = await decryptFile.decryptFile(file, requiresPassword);
|
decryptedFile = await decryptFile.decryptFile(file, requiresPassword);
|
||||||
if (!decryptedFile) throw new Error('File decryption failed.');
|
if (!decryptedFile) throw new Error('File decryption failed.');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user