iText 9.1.0 API
|
Public Member Functions |
|
virtual iText.Kernel.Pdf.WriterProperties | SetPdfVersion (PdfVersion version) |
Defines pdf version for the created document. More... |
|
virtual iText.Kernel.Pdf.WriterProperties | UseSmartMode () |
Enables smart mode. More... |
|
virtual iText.Kernel.Pdf.WriterProperties | AddXmpMetadata () |
If true, default XMPMetadata based on PdfDocumentInfo will be added. More... |
|
virtual iText.Kernel.Pdf.WriterProperties | AddPdfAXmpMetadata (PdfAConformance aConformance) |
Adds PDF/A XMP metadata to the PDF document. More... |
|
virtual iText.Kernel.Pdf.WriterProperties | AddPdfUaXmpMetadata (PdfUAConformance uaConformance) |
Adds PDF/UA XMP metadata to the PDF document. More... |
|
virtual iText.Kernel.Pdf.WriterProperties | SetCompressionLevel (int compressionLevel) |
Defines the level of compression for the document. More... |
|
virtual iText.Kernel.Pdf.WriterProperties | SetFullCompressionMode (bool fullCompressionMode) |
Defines if full compression mode is enabled. More... |
|
virtual iText.Kernel.Pdf.WriterProperties | SetStandardEncryption (byte[] userPassword, byte[] ownerPassword, int permissions, int encryptionAlgorithm) |
Sets the encryption options for the document. More... |
|
virtual iText.Kernel.Pdf.WriterProperties | SetStandardEncryption (byte[] userPassword, byte[] ownerPassword, int permissions, int encryptionAlgorithm, MacProperties macProperties) |
Sets the encryption options for the document. More... |
|
virtual iText.Kernel.Pdf.WriterProperties | SetPublicKeyEncryption (IX509Certificate[] certs, int[] permissions, int encryptionAlgorithm) |
Sets the certificate encryption options for the document. More... |
|
virtual iText.Kernel.Pdf.WriterProperties | SetPublicKeyEncryption (IX509Certificate[] certs, int[] permissions, int encryptionAlgorithm, MacProperties macProperties) |
Sets the certificate encryption options for the document. More... |
|
virtual iText.Kernel.Pdf.WriterProperties | SetInitialDocumentId (PdfString initialDocumentId) |
The /ID entry of a document contains an array with two entries. More... |
|
virtual iText.Kernel.Pdf.WriterProperties | SetModifiedDocumentId (PdfString modifiedDocumentId) |
The /ID entry of a document contains an array with two entries. More... |
|
Package Attributes |
|
int | compressionLevel |
bool? | isFullCompression |
Indicates if to use full compression (using object streams). More... |
|
bool | smartMode |
Indicates if the writer copy objects in a smart mode. More... |
|
bool | addXmpMetadata |
PdfAConformance | addPdfAXmpMetadata = null |
PdfUAConformance | addPdfUaXmpMetadata = null |
PdfVersion | pdfVersion |
EncryptionProperties | encryptionProperties |
PdfString | initialDocumentId |
The ID entry that represents the initial identifier. More... |
|
PdfString | modifiedDocumentId |
The ID entry that represents a change in a document. More... |
|
|
inlinevirtual |
Adds PDF/A XMP metadata to the PDF document.
Adds PDF/A XMP metadata to the PDF document.
This method calls AddXmpMetadata() implicitly.
NOTE: Calling this method only affects the XMP metadata, but doesn't enable any additional checks that the created document meets all PDF/A requirements. When using this method make sure you are familiar with PDF/A document requirements. If you are not sure, use dedicated iText PDF/A module to create valid PDF/A documents.
aConformance | the PDF/A conformance which will be added to XMP metadata |
|
inlinevirtual |
Adds PDF/UA XMP metadata to the PDF document.
Adds PDF/UA XMP metadata to the PDF document.
This method calls AddXmpMetadata() implicitly.
NOTE: Calling this method only affects the XMP metadata, but doesn't enable any additional checks that the created document meets all PDF/UA requirements. When using this method make sure you are familiar with PDF/UA document requirements. If you are not sure, use dedicated iText PDF/UA module to create valid PDF/UA documents.
uaConformance | the PDF/UA conformance which will be added to XMP metadata |
|
inlinevirtual |
If true, default XMPMetadata based on PdfDocumentInfo will be added.
If true, default XMPMetadata based on PdfDocumentInfo will be added. For PDF 2.0 documents, metadata will be added in any case.
|
inlinevirtual |
Defines the level of compression for the document.
Defines the level of compression for the document. See CompressionConstants
compressionLevel |
CompressionConstants value.
|
inlinevirtual |
Defines if full compression mode is enabled.
Defines if full compression mode is enabled. If enabled, not only the content of the pdf document will be compressed, but also the pdf document inner structure.
fullCompressionMode | true - to enable full compression mode, false to disable it |
|
inlinevirtual |
The /ID entry of a document contains an array with two entries.
The /ID entry of a document contains an array with two entries. The first one (initial id) represents the initial document id. It's a permanent identifier based on the contents of the file at the time it was originally created and does not change when the file is incrementally updated. To help ensure the uniqueness of file identifiers, it is recommended to be computed by means of a message digest algorithm such as MD5. iText will by default keep the existing initial id. But if you'd like you can set this id yourself using this setter.
initialDocumentId | the new initial document id |
|
inlinevirtual |
The /ID entry of a document contains an array with two entries.
The /ID entry of a document contains an array with two entries. The second one (modified id) should be the same entry, unless the document has been modified. iText will by default generate a modified id. But if you'd like you can set this id yourself using this setter.
modifiedDocumentId | the new modified document id |
|
inlinevirtual |
Defines pdf version for the created document.
Defines pdf version for the created document. Default value is PDF_1_7.
version | version for the document. |
|
inlinevirtual |
Sets the certificate encryption options for the document.
Sets the certificate encryption options for the document. An array of one or more public certificates must be provided together with an array of the same size for the permissions for each certificate.
|
inlinevirtual |
Sets the certificate encryption options for the document.
Sets the certificate encryption options for the document. An array of one or more public certificates must be provided together with an array of the same size for the permissions for each certificate.
iText.Kernel.Mac.MacProperties class to configure MAC integrity protection properties. Pass null
if you want to disable MAC protection for any reason
|
inlinevirtual |
Sets the encryption options for the document.
|
inlinevirtual |
Sets the encryption options for the document.
iText.Kernel.Mac.MacProperties class to configure MAC integrity protection properties. Pass null
if you want to disable MAC protection for any reason
|
inlinevirtual |
Enables smart mode.
Enables smart mode.
In smart mode when resources (such as fonts, images,...) are encountered, a reference to these resources is saved in a cache, so that they can be reused. This requires more memory, but reduces the file size of the resulting PDF document.
|
package |
The ID entry that represents the initial identifier.
|
package |
Indicates if to use full compression (using object streams).
|
package |
The ID entry that represents a change in a document.
|
package |
Indicates if the writer copy objects in a smart mode.
Indicates if the writer copy objects in a smart mode. If so PdfDictionary and PdfStream will be hashed and reused if there's an object with the same content later.