public final class PdfSaveOptions extends Object implements ISaveOptions
Allows to specify custom options for generating and saving PDF (Portable Document Format) documents
Constructor and Description |
---|
PdfSaveOptions() |
Modifier and Type | Method and Description |
---|---|
byte |
getCompliance()
Specifies the PDF standards compliance level for output documents.
|
byte |
getFontEmbedding()
Responsible for embedding font resources into resultant PDF document, which are used in the original document.
|
boolean |
getOptimizeMemoryUsage()
Enables memory optimization mechanisms during document generation from HTML, which degrades performance in as a cost of decreasing memory usage.
|
String |
getPassword()
Password, which will be applied to the generated PDF document as user password, required for opening.
|
void |
setCompliance(byte value)
Specifies the PDF standards compliance level for output documents.
|
void |
setOptimizeMemoryUsage(boolean value)
Enables memory optimization mechanisms during document generation from HTML, which degrades performance in as a cost of decreasing memory usage.
|
void |
setPassword(String value)
Password, which will be applied to the generated PDF document as user password, required for opening.
|
public final byte getCompliance()
Specifies the PDF standards compliance level for output documents. Default is PdfCompliance.Pdf17.
public final byte getFontEmbedding()
Responsible for embedding font resources into resultant PDF document, which are used in the original document. By default doesn't embed any fonts (NotEmbed).
public final boolean getOptimizeMemoryUsage()
Enables memory optimization mechanisms during document generation from HTML, which degrades performance in as a cost of decreasing memory usage. Setting this option to true can significantly decrease memory consumption while generating large documents at the cost of slower saving time. Default is false (memory optimization is disabled for the sake of better performance).
public final String getPassword()
Password, which will be applied to the generated PDF document as user password, required for opening. If NULL or empty, no password will be applied to the document. Otherwise, document will be encrypted with RC4 (key length of 128 bit). By default is NULL — password is not applied.
public final void setCompliance(byte value)
Specifies the PDF standards compliance level for output documents. Default is PdfCompliance.Pdf17.
public final void setOptimizeMemoryUsage(boolean value)
Enables memory optimization mechanisms during document generation from HTML, which degrades performance in as a cost of decreasing memory usage. Setting this option to true can significantly decrease memory consumption while generating large documents at the cost of slower saving time. Default is false (memory optimization is disabled for the sake of better performance).
public final void setPassword(String value)
Password, which will be applied to the generated PDF document as user password, required for opening. If NULL or empty, no password will be applied to the document. Otherwise, document will be encrypted with RC4 (key length of 128 bit). By default is NULL — password is not applied.