pdfprocessor: don't throw exception on encrypted files (locked ones are
the problem)
这个提交包含在:
父节点
f97ba49b91
当前提交
fea0ab892f
@ -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();
|
||||
|
正在加载...
在新工单中引用
屏蔽一个用户