Skip to main content

PrintOptions Class

Contains options that specify how a PDF document is printed.

Declaration

public class PrintOptions extends JavaObject

Remarks

Use the PrintOptions class to configure print settings before you print a PDF document. You can specify page orientation, scaling options, printer settings, and additional print preferences.

Inherited Members

com.devexpress.system.JavaObject.clone()
com.devexpress.system.JavaObject.equals(java.lang.Object)
com.devexpress.system.JavaObject.hashCode()
com.devexpress.system.JavaObject.initFields()
com.devexpress.system.JavaObject.memberwiseClone()
com.devexpress.system.JavaObject.toString()
java.lang.Object.finalize()
java.lang.Object.getClass()
java.lang.Object.notify()
java.lang.Object.notifyAll()
java.lang.Object.wait()
java.lang.Object.wait(long)
java.lang.Object.wait(long,int)

Inheritance

Object
com.devexpress.system.JavaObject
PrintOptions

PrintOptions()

Initializes a new instance of the PrintOptions class.

Declaration

public PrintOptions()

Methods

getPageOrientation() Method

Returns the orientation of printed pages.

Declaration

public PrintPageOrientation getPageOrientation()

Returns

Type Description
PrintPageOrientation

The orientation of printed pages.

getPrinterSettings() Method

Returns printer settings used to print the document.

Declaration

public DXPrinterSettings getPrinterSettings()

Returns

Type Description
com.devexpress.drawing.printing.DXPrinterSettings

Printer settings.

getPrintInGrayscale() Method

Returns whether the document is printed in grayscale.

Declaration

public boolean getPrintInGrayscale()

Returns

Type Description
boolean

true if the document is printed in grayscale; otherwise, false.

getPrintStickyNotes() Method

Returns whether to print sticky note annotations.

Declaration

public boolean getPrintStickyNotes()

Returns

Type Description
boolean

true to print sticky note annotations; otherwise, false.

getPrintTextAsOutlines() Method

Returns whether to print text as outlines.

Declaration

public boolean getPrintTextAsOutlines()

Returns

Type Description
boolean

true to print text as outlines; otherwise, false.

getScale() Method

Returns the custom scale percentage used to print the document.

Declaration

public float getScale()

Returns

Type Description
float

The scale percentage used to print the document.

getScaleMode() Method

Returns the scaling mode applied when the document is printed.

Declaration

public PrintScaleMode getScaleMode()

Returns

Type Description
PrintScaleMode

The scaling mode.

setPageOrientation(PrintPageOrientation value) Method

Sets the orientation of printed pages.

Declaration

public void setPageOrientation(PrintPageOrientation value)

Parameters

Name Type Description
value PrintPageOrientation

The orientation of printed pages.

setPrintInGrayscale(boolean value) Method

Sets whether to print the document in grayscale.

Declaration

public void setPrintInGrayscale(boolean value)

Parameters

Name Type Description
value boolean

true to print the document in grayscale; otherwise, false.

setPrintStickyNotes(boolean value) Method

Sets whether to print sticky note annotations.

Declaration

public void setPrintStickyNotes(boolean value)

Parameters

Name Type Description
value boolean

true to print sticky note annotations; otherwise, false.

setPrintTextAsOutlines(boolean value) Method

Sets whether to print text as outlines.

Declaration

public void setPrintTextAsOutlines(boolean value)

Parameters

Name Type Description
value boolean

true to print text as outlines; otherwise, false.

setScale(float value) Method

Sets the custom scale percentage used to print the document.

Declaration

public void setScale(float value)

Parameters

Name Type Description
value float

The scale percentage used to print the document.

setScaleMode(PrintScaleMode value) Method

Sets the scaling mode applied when the document is printed.

Declaration

public void setScaleMode(PrintScaleMode value)

Parameters

Name Type Description
value PrintScaleMode

The scaling mode.