From fea0ab892fc2319b974f10c7ec0f5c075d069e21 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 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cli/pdfprocessor.cpp b/cli/pdfprocessor.cpp index ed55daa..87f4181 100644 --- a/cli/pdfprocessor.cpp +++ b/cli/pdfprocessor.cpp @@ -15,12 +15,11 @@ 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; auto pagecount = doc->numPages();