PdfProcessor: Throw exception for encrypted/password protected files

Tá an tiomantas seo le fáil i:
Albert S. 2019-04-22 23:13:45 +02:00
tuismitheoir 5a99890d28
tiomantas a53ce19621

Féach ar an gComhad

@ -15,6 +15,12 @@ QVector<PageData> PdfProcessor::process(const QByteArray &data) const
{
throw QSSGeneralException("Failed to process pdf data");
}
if(doc->isEncrypted() || doc->isLocked())
{
throw QSSGeneralException("Doc is encrypted/locked");
}
QRectF entirePage;
auto pagecount = doc->numPages();