PdfProcessor: Throw exception for encrypted/password protected files
这个提交包含在:
父节点
cb8909bfa7
当前提交
2d6994b1f5
@ -13,6 +13,11 @@ 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();
|
||||
|
正在加载...
在新工单中引用
屏蔽一个用户