public class PdfSaveOptions extends SaveOptions
Class representing options of saving to PDF.
Constructor and Description |
---|
PdfSaveOptions()
Creates new instance of options.
|
Modifier and Type | Method and Description |
---|---|
PdfEncryptionDetails |
getEncryptionDetails()
Gets or sets a encryption details.
|
PdfImageCompression |
getImageCompression()
Specifies compression type to be used for all images in the document.
|
int |
getJpegQualityLevel()
The Quality category specifies the level of compression for an image.
|
int |
getOutlineTreeExpansionLevel()
Specifies up to what level the document outline should be expanded when the PDF file is viewed.
1 - only the first level outline items are shown,
2 - only the first and second level outline items are shown,
and so on.
|
int |
getOutlineTreeHeight()
Specifies the height of the document outline tree to save.
0 - the outline tree will not be converted,
1 - only the first level outline items will be converted,
ans so on.
|
PdfTextCompression |
getTextCompression()
Specifies at which level in the document outline to display
ApsBookmark objects.
0 - not displayed.
1 at first level and so on. |
void |
setEncryptionDetails(PdfEncryptionDetails value)
Gets or sets a encryption details.
|
void |
setImageCompression(PdfImageCompression value)
Specifies compression type to be used for all images in the document.
|
void |
setJpegQualityLevel(int value)
The Quality category specifies the level of compression for an image.
|
void |
setOutlineTreeExpansionLevel(int value)
Specifies up to what level the document outline should be expanded when the PDF file is viewed.
1 - only the first level outline items are shown,
2 - only the first and second level outline items are shown,
and so on.
|
void |
setOutlineTreeHeight(int value)
Specifies the height of the document outline tree to save.
0 - the outline tree will not be converted,
1 - only the first level outline items will be converted,
ans so on.
|
void |
setTextCompression(PdfTextCompression value)
Specifies at which level in the document outline to display
ApsBookmark objects.
0 - not displayed.
1 at first level and so on. |
rasterizeFormulas, rasterizeFormulas, rasterizeIncludedGraphics, rasterizeIncludedGraphics, subsetFonts, subsetFonts
public int getJpegQualityLevel()
The Quality category specifies the level of compression for an image. Available values are 0 to 100. The lower the number specified, the higher the compression and therefore the lower the quality of the image. 0 value results in lowest quality image, while 100 results in highest.
public void setJpegQualityLevel(int value)
The Quality category specifies the level of compression for an image. Available values are 0 to 100. The lower the number specified, the higher the compression and therefore the lower the quality of the image. 0 value results in lowest quality image, while 100 results in highest.
value
- The value specifying the level of compression for an image.public int getOutlineTreeHeight()
Specifies the height of the document outline tree to save. 0 - the outline tree will not be converted, 1 - only the first level outline items will be converted, ans so on.
public void setOutlineTreeHeight(int value)
Specifies the height of the document outline tree to save. 0 - the outline tree will not be converted, 1 - only the first level outline items will be converted, ans so on.
value
- The outline tree height.public int getOutlineTreeExpansionLevel()
Specifies up to what level the document outline should be expanded when the PDF file is viewed. 1 - only the first level outline items are shown, 2 - only the first and second level outline items are shown, and so on. Default is 1.
public void setOutlineTreeExpansionLevel(int value)
Specifies up to what level the document outline should be expanded when the PDF file is viewed. 1 - only the first level outline items are shown, 2 - only the first and second level outline items are shown, and so on. Default is 1.
value
- The outline tree expansion level.public PdfTextCompression getTextCompression()
Specifies at which level in the document outline to display ApsBookmark
objects.
0 - not displayed.
1 at first level and so on.
Default is 0.
Specifies compression type to be used for all content streams except images.
Default is PdfTextCompression.Flate
.
public void setTextCompression(PdfTextCompression value)
Specifies at which level in the document outline to display ApsBookmark
objects.
0 - not displayed.
1 at first level and so on.
Default is 0.
Specifies compression type to be used for all content streams except images.
Default is PdfTextCompression.Flate
.
value
- The compression type.public PdfImageCompression getImageCompression()
Specifies compression type to be used for all images in the document.
Default is PdfImageCompression.Auto
.
public void setImageCompression(PdfImageCompression value)
Specifies compression type to be used for all images in the document.
Default is PdfImageCompression.Auto
.
value
- The compression type.public PdfEncryptionDetails getEncryptionDetails()
Gets or sets a encryption details. If not set, then no encryption will be performed.
public void setEncryptionDetails(PdfEncryptionDetails value)
Gets or sets a encryption details. If not set, then no encryption will be performed.
value
- The encryption details.Copyright © 2022 Aspose. All Rights Reserved.