PdfProcessor: Throw exception for encrypted/password protected files
Šī revīzija ir iekļauta:
vecāks
5a99890d28
revīzija
a53ce19621
@ -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();
|
||||
|
Notiek ielāde…
Atsaukties uz šo jaunā problēmā
Block a user