Issue #50: Fix of 00007.pdf

This commit is contained in:
Jakub Melka
2023-04-30 15:59:53 +02:00
parent 37dd55a361
commit 0b47464241

View File

@ -522,6 +522,10 @@ QByteArray PDFFlateDecodeFilter::uncompress(const QByteArray& data)
break; // No error, normal behaviour break; // No error, normal behaviour
default: default:
{
const bool ignoreError = error == Z_DATA_ERROR && errorMessage == "incorrect data check";
if (!ignoreError)
{ {
if (errorMessage.isEmpty()) if (errorMessage.isEmpty())
{ {
@ -531,6 +535,7 @@ QByteArray PDFFlateDecodeFilter::uncompress(const QByteArray& data)
throw PDFException(PDFTranslationContext::tr("Error decompressing by flate method: %1").arg(errorMessage)); throw PDFException(PDFTranslationContext::tr("Error decompressing by flate method: %1").arg(errorMessage));
} }
} }
}
return result; return result;
} }