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.
setImageCompression(int value)Sets 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.
setJpegQuality(int value)Sets a value determining the quality of the JPEG images inside PDF document.
getPageSplittingAlgorithm()Gets or sets algorithm used for page splitting.
setPageSplittingAlgorithm(PageSplittingAlgorithm value)Gets or sets algorithm used for page splitting.
getPageSettings()Gets or sets the page settings for each page in document.
setPageSettings(PageSettings value)Gets or sets the page settings for each page in document.

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

setImageCompression(int value)

public final void setImageCompression(int value)

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

Parameters:

ParameterTypeDescription
valueint

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

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

getPageSplittingAlgorithm()

public PageSplittingAlgorithm getPageSplittingAlgorithm()

Gets or sets algorithm used for page splitting.

Value: The PageSplittingAlgorithm .

Returns: PageSplittingAlgorithm

setPageSplittingAlgorithm(PageSplittingAlgorithm value)

public void setPageSplittingAlgorithm(PageSplittingAlgorithm value)

Gets or sets algorithm used for page splitting.

Value: The PageSplittingAlgorithm .

Parameters:

ParameterTypeDescription
valuePageSplittingAlgorithm

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

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