PdfSaveOptions

Inheritance: java.lang.Object, com.aspose.note.SaveOptions

public final class PdfSaveOptions extends SaveOptions

Allows to specify additional options when rendering document pages to PDF.

Constructors

ConstructorDescription
PdfSaveOptions()Initializes a new instance of the PdfSaveOptions class.

Methods

MethodDescription
getImageCompression()Gets the type of compression applied to images in the PDF file.
getJpegQuality()Gets a value determining the quality of the JPEG images inside PDF document.
getPageSettings()Gets or sets the page settings for each page in document.
getPageSplittingAlgorithm()Gets or sets algorithm used for page splitting.
setImageCompression(int value)Sets the type of compression applied to images in the PDF file.
setJpegQuality(int value)Sets a value determining the quality of the JPEG images inside PDF document.
setPageSettings(PageSettings value)Gets or sets the page settings for each page in document.
setPageSplittingAlgorithm(PageSplittingAlgorithm value)Gets or sets algorithm used for page splitting.

PdfSaveOptions()

public PdfSaveOptions()

Initializes a new instance of the PdfSaveOptions class.

getImageCompression()

public final int getImageCompression()

Gets the type of compression applied to images in the PDF file.

Returns: int

getJpegQuality()

public final int getJpegQuality()

Gets a value determining the quality of the JPEG images inside PDF document. The value may vary from 0 to 100 where 0 means worst quality but maximum compression and 100 means best quality but minimum compression.


The default value is 90.

Returns: int

getPageSettings()

public PageSettings getPageSettings()

Gets or sets the page settings for each page in document. By default depends on CurrentUICulture, *US cultures have letter setting, other have A4 settings.

Returns: PageSettings

getPageSplittingAlgorithm()

public PageSplittingAlgorithm getPageSplittingAlgorithm()

Gets or sets algorithm used for page splitting.

Value: The PageSplittingAlgorithm.

Returns: PageSplittingAlgorithm

setImageCompression(int value)

public final void setImageCompression(int value)

Sets the type of compression applied to images in the PDF file.

Parameters:

ParameterTypeDescription
valueint

setJpegQuality(int value)

public final void setJpegQuality(int value)

Sets a value determining the quality of the JPEG images inside PDF document. The value may vary from 0 to 100 where 0 means worst quality but maximum compression and 100 means best quality but minimum compression.


The default value is 90.

Parameters:

ParameterTypeDescription
valueint

setPageSettings(PageSettings value)

public void setPageSettings(PageSettings value)

Gets or sets the page settings for each page in document. By default depends on CurrentUICulture, *US cultures have letter setting, other have A4 settings.

Parameters:

ParameterTypeDescription
valuePageSettings

setPageSplittingAlgorithm(PageSplittingAlgorithm value)

public void setPageSplittingAlgorithm(PageSplittingAlgorithm value)

Gets or sets algorithm used for page splitting.

Value: The PageSplittingAlgorithm.

Parameters:

ParameterTypeDescription
valuePageSplittingAlgorithm