public class PdfSaveOptions extends SaveOptions implements IMultiPageSaveOptions
Class for XPS-as-PDF saving options.
Constructor and Description |
---|
PdfSaveOptions()
Creates new instance of options.
|
Modifier and Type | Method and Description |
---|---|
PdfEncryptionDetails |
getEncryptionDetails()
Returns the encryption details.
|
PdfImageCompression |
getImageCompression()
Returns the compression type to be used for all images in the document.
|
int |
getOutlineTreeExpansionLevel()
Gets 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()
Gets 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,
and so on.
|
int[] |
getPageNumbers()
Gets the array of numbers of pages to render.
|
PdfTextCompression |
getTextCompression()
Returns the compression type to be used for all content streams except images.
|
void |
setEncryptionDetails(PdfEncryptionDetails value)
Sets the encryption details.
|
void |
setImageCompression(PdfImageCompression value)
Sets the compression type to be used for all images in the document.
|
void |
setOutlineTreeExpansionLevel(int value)
Sets 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)
Sets 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,
and so on.
|
void |
setPageNumbers(int[] value)
Sets the array of numbers of pages to render.
|
void |
setTextCompression(PdfTextCompression value)
Sets the compression type to be used for all content streams except images.
|
getAdditionalFontsFolders, getExceptions, getJpegQualityLevel, isDebug, isSupressErrors, setAdditionalFontsFolders, setDebug, setJpegQualityLevel, setSupressErrors
public int[] getPageNumbers()
Gets the array of numbers of pages to render.
getPageNumbers
in interface IMultiPageSaveOptions
public void setPageNumbers(int[] value)
Sets the array of numbers of pages to render.
setPageNumbers
in interface IMultiPageSaveOptions
value
- Numbers of pages.public int getOutlineTreeHeight()
Gets 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, and so on.
public void setOutlineTreeHeight(int value)
Sets 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, and so on.
value
- The outline tree height.public int getOutlineTreeExpansionLevel()
Gets 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.
public void setOutlineTreeExpansionLevel(int value)
Sets 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.
value
- The outline tree expansion level.public PdfTextCompression getTextCompression()
Returns the compression type to be used for all content streams except images.
Default is PdfTextCompression.Flate
.
public void setTextCompression(PdfTextCompression value)
Sets the compression type to be used for all content streams except images.
Default is PdfTextCompression.Flate
.
value
- The compression type.public PdfImageCompression getImageCompression()
Returns the compression type to be used for all images in the document.
Default is PdfImageCompression.Auto
.
public void setImageCompression(PdfImageCompression value)
Sets the compression type to be used for all images in the document.
Default is PdfImageCompression.Auto
.
value
- The compression type.public PdfEncryptionDetails getEncryptionDetails()
Returns the encryption details. If not set, then no encryption will be performed.
public void setEncryptionDetails(PdfEncryptionDetails value)
Sets the encryption details. If not set, then no encryption will be performed.
value
- The encryption details.