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
Inheritance
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 |
|
getPrintStickyNotes() Method
Returns whether to print sticky note annotations.
Declaration
public boolean getPrintStickyNotes()
Returns
| Type | Description |
|---|---|
| boolean |
|
getPrintTextAsOutlines() Method
Returns whether to print text as outlines.
Declaration
public boolean getPrintTextAsOutlines()
Returns
| Type | Description |
|---|---|
| boolean |
|
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 |
|
setPrintStickyNotes(boolean value) Method
Sets whether to print sticky note annotations.
Declaration
public void setPrintStickyNotes(boolean value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | boolean |
|
setPrintTextAsOutlines(boolean value) Method
Sets whether to print text as outlines.
Declaration
public void setPrintTextAsOutlines(boolean value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | boolean |
|
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. |