public final class Security_Api extends Object
Constructor and Description |
---|
Security_Api() |
Modifier and Type | Method and Description |
---|---|
static SecurityOptions |
getPdfSecurityOptions(InternalPdfDocument internalPdfDocument)
Get PDF security settings
|
static void |
makePdfDocumentReadOnly(InternalPdfDocument internalPdfDocument,
String ownerPassword)
Makes this PDF document read only such that:
|
static void |
removePasswordsAndEncryption(InternalPdfDocument internalPdfDocument)
Removes all user and owner password security for a PDF document.
|
static void |
setPdfSecuritySettings(InternalPdfDocument internalPdfDocument,
SecurityOptions securityOptions)
Set PDF security settings
|
public static void removePasswordsAndEncryption(InternalPdfDocument internalPdfDocument)
Content is encrypted at 128 bit. Copy and paste of content is disallowed. Annotations and form editing are disabled.
internalPdfDocument
- the internal pdf documentpublic static SecurityOptions getPdfSecurityOptions(InternalPdfDocument internalPdfDocument)
.
internalPdfDocument
- the internal pdf documentpublic static void makePdfDocumentReadOnly(InternalPdfDocument internalPdfDocument, String ownerPassword)
Content is encrypted at 128 bit. Copy and paste of content is disallowed. Annotations and form editing are disabled.
.
internalPdfDocument
- the internal pdf documentownerPassword
- The owner password for the PDF. A string for owner password is required to enable PDF encryption and all document security options.public static void setPdfSecuritySettings(InternalPdfDocument internalPdfDocument, SecurityOptions securityOptions)
.
internalPdfDocument
- the internal pdf documentsecurityOptions
- A SecurityOptions
object.Copyright © 2022–2023 Iron Software. All rights reserved.