1
0

pdfprocessor: don't throw exception on encrypted files (locked ones are

the problem)
Este cometimento está contido em:
Albert S. 2019-05-04 09:38:52 +02:00
ascendente f97ba49b91
cometimento fea0ab892f

Ver ficheiro

@ -15,12 +15,11 @@ QVector<PageData> 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();