Enables memory optimization mechanisms during document generation from HTML, which degrades performance in as a cost of decreasing memory usage.
PdfSaveOptions()
public PdfSaveOptions()
getPassword()
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 \u2014 password is not applied.
Returns:
java.lang.String
setPassword(String value)
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 \u2014 password is not applied.
Parameters:
Parameter
Type
Description
value
java.lang.String
getCompliance()
public final int getCompliance()
Specifies the PDF standards compliance level for output documents. Default is PdfCompliance.Pdf17.
Returns:
int
setCompliance(int value)
public final void setCompliance(int value)
Specifies the PDF standards compliance level for output documents. Default is PdfCompliance.Pdf17.
Parameters:
Parameter
Type
Description
value
int
getFontEmbedding()
public final int 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).
Returns:
int
setFontEmbedding(int value)
public final void setFontEmbedding(int value)
Responsible for embedding font resources into resultant PDF document, which are used in the original document. By default doesn’t embed any fonts (NotEmbed).
Parameters:
Parameter
Type
Description
value
int
getOptimizeMemoryUsage()
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).
Returns:
boolean
setOptimizeMemoryUsage(boolean value)
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).
Parameters:
Parameter
Type
Description
value
boolean
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.