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

the problem)
Cette révision appartient à :
Albert S. 2019-05-04 09:38:52 +02:00
Parent ccb6818e72
révision 6bb53b8c31
1 fichiers modifiés avec 2 ajouts et 2 suppressions

Voir le fichier

@ -13,9 +13,9 @@ 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;