Fix decryption of objects with number > 511, better use of zlib library

This commit is contained in:
Jakub Melka
2019-08-18 16:03:41 +02:00
parent cf0f91fdb0
commit 23a36f14a4
5 changed files with 76 additions and 13 deletions

View File

@ -518,9 +518,17 @@ void PDFPageContentProcessor::processContent(const QByteArray& content)
void PDFPageContentProcessor::processContentStream(const PDFStream* stream)
{
QByteArray content = m_document->getDecodedStream(stream);
try
{
QByteArray content = m_document->getDecodedStream(stream);
processContent(content);
processContent(content);
}
catch (PDFParserException exception)
{
m_operands.clear();
m_errorList.append(PDFRenderError(RenderErrorType::Error, exception.getMessage()));
}
}
void PDFPageContentProcessor::processForm(const QMatrix& matrix, const QRectF& boundingBox, const PDFObject& resources, const QByteArray& content)