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

the problem)
This commit is contained in:
Albert S. 2019-05-04 09:38:52 +02:00
부모 ccb6818e72
커밋 6bb53b8c31
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제

파일 보기

@ -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;