iText 8.0.2 API
|
This class takes any PDF and returns exactly the same but encrypted. More...
Public Member Functions |
|
iText.Kernel.Pdf.PdfEncryptor | SetEventCountingMetaInfo (IMetaInfo metaInfo) |
Sets the iText.Commons.Actions.Contexts.IMetaInfo that will be used during PdfDocument creation. More... |
|
iText.Kernel.Pdf.PdfEncryptor | SetEncryptionProperties (EncryptionProperties properties) |
Sets the EncryptionProperties More... |
|
void | Encrypt (PdfReader reader, Stream os, IDictionary< String, String > newInfo) |
Entry point to encrypt a PDF document. More... |
|
void | Encrypt (PdfReader reader, Stream os) |
Entry point to encrypt a PDF document. More... |
|
Static Public Member Functions |
|
static void | Encrypt (PdfReader reader, Stream os, EncryptionProperties properties, IDictionary< String, String > newInfo) |
Entry point to encrypt a PDF document. More... |
|
static void | Encrypt (PdfReader reader, Stream os, EncryptionProperties properties) |
Entry point to encrypt a PDF document. More... |
|
static String | GetPermissionsVerbose (int permissions) |
Give you a verbose analysis of the permissions. More... |
|
static bool | IsPrintingAllowed (int permissions) |
Tells you if printing is allowed. More... |
|
static bool | IsModifyContentsAllowed (int permissions) |
Tells you if modifying content is allowed. More... |
|
static bool | IsCopyAllowed (int permissions) |
Tells you if copying is allowed. More... |
|
static bool | IsModifyAnnotationsAllowed (int permissions) |
Tells you if modifying annotations is allowed. More... |
|
static bool | IsFillInAllowed (int permissions) |
Tells you if filling in fields is allowed. More... |
|
static bool | IsScreenReadersAllowed (int permissions) |
Tells you if repurposing for screenreaders is allowed. More... |
|
static bool | IsAssemblyAllowed (int permissions) |
Tells you if document assembly is allowed. More... |
|
static bool | IsDegradedPrintingAllowed (int permissions) |
Tells you if degraded printing is allowed. More... |
|
This class takes any PDF and returns exactly the same but encrypted.
This class takes any PDF and returns exactly the same but encrypted. All the content, links, outlines, etc, are kept. It is also possible to change the info dictionary.
|
inline |
Entry point to encrypt a PDF document.
reader | the read PDF |
os | the output destination |
|
inlinestatic |
Entry point to encrypt a PDF document.
reader | the read PDF |
os | the output destination |
properties | encryption properties. See EncryptionProperties. |
|
inlinestatic |
Entry point to encrypt a PDF document.
reader | the read PDF |
os | the output destination |
properties | encryption properties. See EncryptionProperties. |
newInfo | an optional String map to add or change the info dictionary. Entries with null values delete the key in the original info dictionary |
|
inline |
Entry point to encrypt a PDF document.
reader | the read PDF |
os | the output destination |
newInfo | an optional String map to add or change the info dictionary. Entries with null values delete the key in the original info dictionary |
|
inlinestatic |
Give you a verbose analysis of the permissions.
permissions | the permissions value of a PDF file |
|
inlinestatic |
Tells you if document assembly is allowed.
permissions | the permissions value of a PDF file |
|
inlinestatic |
Tells you if copying is allowed.
permissions | the permissions value of a PDF file |
|
inlinestatic |
Tells you if degraded printing is allowed.
permissions | the permissions value of a PDF file |
|
inlinestatic |
Tells you if filling in fields is allowed.
permissions | the permissions value of a PDF file |
|
inlinestatic |
Tells you if modifying annotations is allowed.
permissions | the permissions value of a PDF file |
|
inlinestatic |
Tells you if modifying content is allowed.
permissions | the permissions value of a PDF file |
|
inlinestatic |
Tells you if printing is allowed.
permissions | the permissions value of a PDF file |
|
inlinestatic |
Tells you if repurposing for screenreaders is allowed.
permissions | the permissions value of a PDF file |
|
inline |
Sets the EncryptionProperties
properties | the properties to set |
|
inline |
Sets the iText.Commons.Actions.Contexts.IMetaInfo that will be used during PdfDocument creation.
metaInfo | meta info to set |