From 6bb53b8c31f07652c5b1922d0f5153d99cd7ebbf Mon Sep 17 00:00:00 2001 From: Albert S Date: Sat, 4 May 2019 09:38:52 +0200 Subject: [PATCH] pdfprocessor: don't throw exception on encrypted files (locked ones are the problem) --- cli/pdfprocessor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/pdfprocessor.cpp b/cli/pdfprocessor.cpp index ce768a2..22f8e3b 100644 --- a/cli/pdfprocessor.cpp +++ b/cli/pdfprocessor.cpp @@ -13,9 +13,9 @@ QVector PdfProcessor::process(const QByteArray &data) const { throw QSSGeneralException("Failed to process pdf data"); } - if(doc->isEncrypted() || doc->isLocked()) + if(doc->isLocked()) { - throw QSSGeneralException("Doc is encrypted/locked"); + throw QSSGeneralException("Doc is locked"); } QRectF entirePage;