mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Issue #183: Option to ignore PDF security settings
This commit is contained in:
@ -81,7 +81,7 @@ using PDFSecurityHandlerPointer = QSharedPointer<PDFSecurityHandler>;
|
||||
|
||||
class PDFStandardSecurityHandler;
|
||||
|
||||
class PDFSecurityHandler
|
||||
class PDF4QTLIBCORESHARED_EXPORT PDFSecurityHandler
|
||||
{
|
||||
public:
|
||||
explicit PDFSecurityHandler() = default;
|
||||
@ -203,6 +203,12 @@ public:
|
||||
/// \param id First part of the id of the document
|
||||
static PDFSecurityHandlerPointer createSecurityHandler(const PDFObject& encryptionDictionaryObject, const QByteArray& id);
|
||||
|
||||
/// Disable DRM mode of documents.
|
||||
static void setNoDRMMode();
|
||||
|
||||
/// Returns true, if no DRM mode is enabled
|
||||
static bool isNoDRM();
|
||||
|
||||
protected:
|
||||
friend class PDFSecurityHandlerFactory;
|
||||
|
||||
|
Reference in New Issue
Block a user