public class PdfRenderingOptions extends RenderingOptions
Represents rendering options for PdfDevice
.
Constructor and Description |
---|
PdfRenderingOptions() |
Modifier and Type | Method and Description |
---|---|
boolean |
getApplyImageTransparent()
Applies the specified transparent color to an image if
true . |
int |
getCompliance()
Desired conformance level for generated PDF document.
|
com.aspose.html.rendering.pdf.PdfComplianceOptions |
getComplianceOptions()
Represents Pdf compliance options.
|
com.aspose.html.rendering.pdf.signature.PdfDigitalSignatureDetailsCore |
getDigitalSignatureDetails()
Gets or sets a digital signature details.
|
PdfEncryptionInfo |
getEncryption()
Gets or sets a encryption details.
|
int |
getExpandedOutlineLevels()
Specifies how many levels in the document outline to show expanded when the PDF file is viewed.
0 - the document outline is not expanded.
1 - first level items in the document are expanded and so on.
|
int |
getFontEmbeddingRule()
Gets or sets the font embedding rule.
|
com.aspose.html.rendering.pdf.FontExceptionCollection |
getFontException()
Gets the font embedding exception.
|
int |
getImageCompression()
Specifies compression type to be used for all images in the document.
|
com.aspose.html.internal.ms.System.Drawing.Color |
getImageTransparentColor()
Gets or sets the image transparent color.
|
int |
getJpegQuality()
Specifies the quality of JPEG compression for images (if JPEG compression is used).
|
boolean |
getPdfaCompliant()
Gets a value indicating whether [pdfa compliant].
|
long |
getTabSize()
The tab-size property is used to customize the width of a tab (U+0009) character.
|
int |
getTextCompression()
Specifies compression type to be used for all content streams except images.
|
boolean |
isEncrypted()
Returns true if document encryption option is on.
|
boolean |
isShowHyperlinkRects()
A debug settings that turns on display of active rectangles of hyperlinks in the PDF document.
|
void |
setApplyImageTransparent(boolean value)
Applies the specified transparent color to an image if
true . |
void |
setCompliance(int value)
Desired conformance level for generated PDF document.
|
void |
setComplianceOptions(com.aspose.html.rendering.pdf.PdfComplianceOptions value)
Represents Pdf compliance options.
|
void |
setDigitalSignatureDetails(com.aspose.html.rendering.pdf.signature.PdfDigitalSignatureDetailsCore value)
Gets or sets a digital signature details.
|
void |
setEncryption(PdfEncryptionInfo value)
Gets or sets a encryption details.
|
void |
setExpandedOutlineLevels(int value)
Specifies how many levels in the document outline to show expanded when the PDF file is viewed.
0 - the document outline is not expanded.
1 - first level items in the document are expanded and so on.
|
void |
setFontEmbeddingRule(int value)
Gets or sets the font embedding rule.
|
void |
setImageCompression(int value)
Specifies compression type to be used for all images in the document.
|
void |
setImageTransparentColor(com.aspose.html.internal.ms.System.Drawing.Color value)
Gets or sets the image transparent color.
|
void |
setJpegQuality(int value)
Specifies the quality of JPEG compression for images (if JPEG compression is used).
|
void |
setShowHyperlinkRects(boolean value)
A debug settings that turns on display of active rectangles of hyperlinks in the PDF document.
|
void |
setTabSize(long value)
The tab-size property is used to customize the width of a tab (U+0009) character.
|
void |
setTextCompression(int value)
Specifies compression type to be used for all content streams except images.
|
void |
validate()
Validates that the requested options are compatible with each other and throws an exception with an explanatory message if needed.
|
deepClone, getBackgroundColor, getCss, getHorizontalResolution, getPageSetup, getVerticalResolution, setBackgroundColor, setHorizontalResolution, setPageSetup, setVerticalResolution
public void validate()
Validates that the requested options are compatible with each other and throws an exception with an explanatory message if needed.
public int getExpandedOutlineLevels()
Specifies how many levels in the document outline to show expanded when the PDF file is viewed. 0 - the document outline is not expanded. 1 - first level items in the document are expanded and so on. Default is 0.
public void setExpandedOutlineLevels(int value)
Specifies how many levels in the document outline to show expanded when the PDF file is viewed. 0 - the document outline is not expanded. 1 - first level items in the document are expanded and so on. Default is 0.
public int getTextCompression()
Specifies compression type to be used for all content streams except images.
Default is PdfTextCompressionCore.Flate
.
public void setTextCompression(int value)
Specifies compression type to be used for all content streams except images.
Default is PdfTextCompressionCore.Flate
.
public int getImageCompression()
Specifies compression type to be used for all images in the document.
Default is PdfImageCompression.Auto
.
public void setImageCompression(int value)
Specifies compression type to be used for all images in the document.
Default is PdfImageCompression.Auto
.
public int getJpegQuality()
Specifies the quality of JPEG compression for images (if JPEG compression is used). Default is 95.
public void setJpegQuality(int value)
Specifies the quality of JPEG compression for images (if JPEG compression is used). Default is 95.
public boolean isShowHyperlinkRects()
A debug settings that turns on display of active rectangles of hyperlinks in the PDF document.
public void setShowHyperlinkRects(boolean value)
A debug settings that turns on display of active rectangles of hyperlinks in the PDF document.
public int getCompliance()
Desired conformance level for generated PDF document.
Important note: This option should not be changed after PdfDocument object is constructed.
Default is PdfComplianceCore.Pdf15
.
public void setCompliance(int value)
Desired conformance level for generated PDF document.
Important note: This option should not be changed after PdfDocument object is constructed.
Default is PdfComplianceCore.Pdf15
.
public com.aspose.html.rendering.pdf.PdfComplianceOptions getComplianceOptions()
Represents Pdf compliance options.
public void setComplianceOptions(com.aspose.html.rendering.pdf.PdfComplianceOptions value)
Represents Pdf compliance options.
public boolean getPdfaCompliant()
Gets a value indicating whether [pdfa compliant].
Value:true
if [pdfa compliant]; otherwise, false
.public PdfEncryptionInfo getEncryption()
Gets or sets a encryption details. If not set, then no encryption will be performed.
public void setEncryption(PdfEncryptionInfo value)
Gets or sets a encryption details. If not set, then no encryption will be performed.
public boolean isEncrypted()
Returns true if document encryption option is on.
public com.aspose.html.internal.ms.System.Drawing.Color getImageTransparentColor()
Gets or sets the image transparent color.
Value: The color of the image transparent.public void setImageTransparentColor(com.aspose.html.internal.ms.System.Drawing.Color value)
Gets or sets the image transparent color.
Value: The color of the image transparent.public boolean getApplyImageTransparent()
Applies the specified transparent color to an image if true
.
public void setApplyImageTransparent(boolean value)
Applies the specified transparent color to an image if true
.
public com.aspose.html.rendering.pdf.signature.PdfDigitalSignatureDetailsCore getDigitalSignatureDetails()
Gets or sets a digital signature details. If not set, then no signing will be performed.
public void setDigitalSignatureDetails(com.aspose.html.rendering.pdf.signature.PdfDigitalSignatureDetailsCore value)
Gets or sets a digital signature details. If not set, then no signing will be performed.
public com.aspose.html.rendering.pdf.FontExceptionCollection getFontException()
Gets the font embedding exception.
public int getFontEmbeddingRule()
Gets or sets the font embedding rule.
Value: The font embedding rule.public void setFontEmbeddingRule(int value)
Gets or sets the font embedding rule.
Value: The font embedding rule.public long getTabSize()
The tab-size property is used to customize the width of a tab (U+0009) character.
Value: The size of the tab.public void setTabSize(long value)
The tab-size property is used to customize the width of a tab (U+0009) character.
Value: The size of the tab.