PrintOptions

Inheritance: java.lang.Object

public class PrintOptions

Options used to print a document.

Constructors

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

Methods

MethodDescription
getDocumentName()Gets or sets the document name to display (for example, in a print status dialog box or printer queue) while printing the document.
getPageSplittingAlgorithm()Gets or sets algorithm used for page splitting.
getPrinterSettings()Gets or sets the printer settings.
getResolution()Gets or sets the resolution for the generated images, in dots per inch.
setDocumentName(String value)Gets or sets the document name to display (for example, in a print status dialog box or printer queue) while printing the document.
setPageSplittingAlgorithm(PageSplittingAlgorithm value)Gets or sets algorithm used for page splitting.
setPrinterSettings(AttributeSet value)Gets or sets the printer settings.
setResolution(float value)Gets or sets the resolution for the generated images, in dots per inch.

PrintOptions()

public PrintOptions()

Initializes a new instance of the PrintOptions class.

getDocumentName()

public String getDocumentName()

Gets or sets the document name to display (for example, in a print status dialog box or printer queue) while printing the document.

Returns: java.lang.String

getPageSplittingAlgorithm()

public PageSplittingAlgorithm getPageSplittingAlgorithm()

Gets or sets algorithm used for page splitting.

Value: The PageSplittingAlgorithm.

Returns: PageSplittingAlgorithm

getPrinterSettings()

public AttributeSet getPrinterSettings()

Gets or sets the printer settings.

Returns: javax.print.attribute.AttributeSet

getResolution()

public float getResolution()

Gets or sets the resolution for the generated images, in dots per inch.


The default value is 96.

Returns: float

setDocumentName(String value)

public void setDocumentName(String value)

Gets or sets the document name to display (for example, in a print status dialog box or printer queue) while printing the document.

Parameters:

ParameterTypeDescription
valuejava.lang.String

setPageSplittingAlgorithm(PageSplittingAlgorithm value)

public void setPageSplittingAlgorithm(PageSplittingAlgorithm value)

Gets or sets algorithm used for page splitting.

Value: The PageSplittingAlgorithm.

Parameters:

ParameterTypeDescription
valuePageSplittingAlgorithm

setPrinterSettings(AttributeSet value)

public void setPrinterSettings(AttributeSet value)

Gets or sets the printer settings.

Parameters:

ParameterTypeDescription
valuejavax.print.attribute.AttributeSet

setResolution(float value)

public void setResolution(float value)

Gets or sets the resolution for the generated images, in dots per inch.


The default value is 96.

Parameters:

ParameterTypeDescription
valuefloat