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.
public static SecurityOptions getPdfSecurityOptions(InternalPdfDocument internalPdfDocument)
public 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.
.ownerPassword - 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)
securityOptions - A SecurityOptions object.Copyright © 2022. All rights reserved.