public class PrintSettings extends Object
Modifier and Type | Field and Description |
---|---|
boolean |
m_AutoRotate
Flag used to auto-rotate the document when printing.
|
boolean |
m_CenterInPage
Flag used to center the output on the printed page.
|
boolean |
m_ExpandToMargins
Flag used to expand the output to the printer margins.
|
boolean |
m_PrintAnnotations
This flag tells the library whether to print annotations when sending
the PDF content to a printer.
|
boolean |
m_PrintFormsOnly
If this flag is set to true, then only the form fields in the document
will be printed.
|
boolean |
m_QoppaDialog
Sets the value of the Qoppa print dialog flag.
|
boolean |
m_ShrinkToMargins
Flag used to shrink the output to fit the printer margins.
|
Constructor and Description |
---|
PrintSettings()
Constructs a default PrintSettings object.
|
PrintSettings(boolean autoRotate,
boolean shrinkToMargins,
boolean expandToMargins,
boolean centerInPage)
Constructs a new PrintSettings object and initializes each of its
variables to the parameters.
|
PrintSettings(PrintSettings init)
Constructs a new PrintSettings object and initializes to init.
|
Modifier and Type | Method and Description |
---|---|
Rectangle2D |
getPrintableRectangle(int pageIndex)
Returns the area to print.
|
boolean |
isPrintAnnotations()
Returns the value of the print annotations flag.
|
boolean |
isPrintFormsOnly()
Returns the value of the print form fields only flag.
|
boolean |
isQoppaPrintDialog()
Returns the value of the Qoppa print dialog flag.
|
void |
setPrintableRectangle(int pageIndex,
Rectangle2D rect)
Sets the area to print.
|
void |
setPrintAnnotations(boolean printAnnotations)
Sets the value of the print annotations flag.
|
void |
setPrintFormsOnly(boolean print)
Sets the value of the print form fields only flag.
|
void |
setQoppaPrintDialog(boolean qoppaDialog)
Sets the value of the Qoppa print dialog flag.
|
public boolean m_AutoRotate
public boolean m_ShrinkToMargins
public boolean m_ExpandToMargins
public boolean m_CenterInPage
public boolean m_PrintAnnotations
public boolean m_PrintFormsOnly
public boolean m_QoppaDialog
public PrintSettings()
public PrintSettings(boolean autoRotate, boolean shrinkToMargins, boolean expandToMargins, boolean centerInPage)
autoRotate
- Sets the auto rotate flag.shrinkToMargins
- Sets the shrink to page flag.expandToMargins
- Sets the expand to page flag.centerInPage
- Sets the center in page flag.public PrintSettings(PrintSettings init)
init
- Object to use to initialize the new PrintSettings.public boolean isPrintAnnotations()
public void setPrintAnnotations(boolean printAnnotations)
printAnnotations
- The new value of the print annotations flag.public void setPrintableRectangle(int pageIndex, Rectangle2D rect)
pageIndex
- The index of the page. Page index starts at 0.rect
- The area to print.public Rectangle2D getPrintableRectangle(int pageIndex)
pageIndex
- The index of the page. Page index starts at 0.public void setQoppaPrintDialog(boolean qoppaDialog)
qoppaDialog
- The value of the custom dialog flag.public boolean isQoppaPrintDialog()
public boolean isPrintFormsOnly()
public void setPrintFormsOnly(boolean print)
print
- The value of the print form fields only flag.