Package org.apache.poi.ss.usermodel
Interface PrintSetup
- All Known Implementing Classes:
HSSFPrintSetup,XSSFPrintSetup
public interface PrintSetup
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final shortA3 - 297x420 mmstatic final shortA4 Extra - 9.27 x 12.69 instatic final shortA4 - 210x297 mmstatic final shortA4 Plus - 210x330 mmstatic final shortA4 Rotated - 297x210 mmstatic final shortA4 Small - 210x297 mmstatic final shortA4 Transverse - 210x297 mmstatic final shortA5 - 148x210 mmstatic final shortB4 (JIS) 250x354 mmstatic final shortB5 (JIS) 182x257 mmstatic final short11 x 17 instatic final shortUS Envelope #10 4 1/8 x 9 1/2static final shortUS Envelope #9 3 7/8 x 8 7/8static final shortEnvelope C3 324x458 mmstatic final shortEnvelope C4 229x324 mmstatic final shortstatic final shortEnvelope C6 114x162 mmstatic final shortEnvelope C5 162x229 mmstatic final shortEnvelope DL 110x220 mmstatic final shortstatic final shortUS Executive 7 1/4 x 10 1/2 instatic final shortFolio 8 1/2 x 13 instatic final shortUS Ledger 17 x 11 instatic final shortUS Legal 8 1/2 x 14 instatic final shortUS Letter 8 1/2 x 11 instatic final shortUS Letter Rotated 11 x 8 1/2 instatic final shortUS Letter Small 8 1/2 x 11 instatic final shortUS Note 8 1/2 x 11 instatic final shortWhatever the printer's default paper size isstatic final shortQuarto 215x275 mmstatic final shortUS Statement 5 1/2 x 8 1/2 instatic final shortUS Tabloid 11 x 17 instatic final short10 x 14 in -
Method Summary
Modifier and TypeMethodDescriptionshortReturns the number of copies.booleangetDraft()Returns the draft mode.shortReturns the number of pages high to fit the sheet in.shortReturns the number of pages wide to fit sheet in.doubleReturns the footer margin.doubleReturns the header margin.shortReturns the horizontal resolution.booleanReturns the landscape mode.booleanReturns the left to right print order.booleanReturns the black and white setting.booleanReturns the no orientation.booleangetNotes()Returns the print notes.shortReturns the page start.shortReturns the paper size.shortgetScale()Returns the scale.booleanReturns the use page numbers.booleanReturns the valid settings.shortReturns the vertical resolution.voidsetCopies(short copies) Sets the number of copies.voidsetDraft(boolean d) Set whether it is in draft modevoidsetFitHeight(short height) Set the number of pages high to fit the sheet invoidsetFitWidth(short width) Set the number of pages wide to fit the sheet invoidsetFooterMargin(double footermargin) Sets the footer margin.voidsetHeaderMargin(double headermargin) Sets the header margin.voidsetHResolution(short resolution) Sets the horizontal resolution.voidsetLandscape(boolean ls) Set whether to print in landscapevoidsetLeftToRight(boolean ltor) Set whether to go left to right or top down in orderingvoidsetNoColor(boolean mono) Set whether it is black and whitevoidsetNoOrientation(boolean orientation) Set no orientation.voidsetNotes(boolean printnotes) Print the include notesvoidsetPageStart(short start) Set the page numbering start.voidsetPaperSize(short size) Set the paper size.voidsetScale(short scale) Set the scale.voidsetUsePage(boolean page) Set whether to use page startvoidsetValidSettings(boolean valid) Valid settings.voidsetVResolution(short resolution) Sets the vertical resolution.
-
Field Details
-
PRINTER_DEFAULT_PAPERSIZE
static final short PRINTER_DEFAULT_PAPERSIZEWhatever the printer's default paper size is- See Also:
-
LETTER_PAPERSIZE
static final short LETTER_PAPERSIZEUS Letter 8 1/2 x 11 in- See Also:
-
LETTER_SMALL_PAGESIZE
static final short LETTER_SMALL_PAGESIZEUS Letter Small 8 1/2 x 11 in- See Also:
-
TABLOID_PAPERSIZE
static final short TABLOID_PAPERSIZEUS Tabloid 11 x 17 in- See Also:
-
LEDGER_PAPERSIZE
static final short LEDGER_PAPERSIZEUS Ledger 17 x 11 in- See Also:
-
LEGAL_PAPERSIZE
static final short LEGAL_PAPERSIZEUS Legal 8 1/2 x 14 in- See Also:
-
STATEMENT_PAPERSIZE
static final short STATEMENT_PAPERSIZEUS Statement 5 1/2 x 8 1/2 in- See Also:
-
EXECUTIVE_PAPERSIZE
static final short EXECUTIVE_PAPERSIZEUS Executive 7 1/4 x 10 1/2 in- See Also:
-
A3_PAPERSIZE
static final short A3_PAPERSIZEA3 - 297x420 mm- See Also:
-
A4_PAPERSIZE
static final short A4_PAPERSIZEA4 - 210x297 mm- See Also:
-
A4_SMALL_PAPERSIZE
static final short A4_SMALL_PAPERSIZEA4 Small - 210x297 mm- See Also:
-
A5_PAPERSIZE
static final short A5_PAPERSIZEA5 - 148x210 mm- See Also:
-
B4_PAPERSIZE
static final short B4_PAPERSIZEB4 (JIS) 250x354 mm- See Also:
-
B5_PAPERSIZE
static final short B5_PAPERSIZEB5 (JIS) 182x257 mm- See Also:
-
FOLIO8_PAPERSIZE
static final short FOLIO8_PAPERSIZEFolio 8 1/2 x 13 in- See Also:
-
QUARTO_PAPERSIZE
static final short QUARTO_PAPERSIZEQuarto 215x275 mm- See Also:
-
TEN_BY_FOURTEEN_PAPERSIZE
static final short TEN_BY_FOURTEEN_PAPERSIZE10 x 14 in- See Also:
-
ELEVEN_BY_SEVENTEEN_PAPERSIZE
static final short ELEVEN_BY_SEVENTEEN_PAPERSIZE11 x 17 in- See Also:
-
NOTE8_PAPERSIZE
static final short NOTE8_PAPERSIZEUS Note 8 1/2 x 11 in- See Also:
-
ENVELOPE_9_PAPERSIZE
static final short ENVELOPE_9_PAPERSIZEUS Envelope #9 3 7/8 x 8 7/8- See Also:
-
ENVELOPE_10_PAPERSIZE
static final short ENVELOPE_10_PAPERSIZEUS Envelope #10 4 1/8 x 9 1/2- See Also:
-
ENVELOPE_DL_PAPERSIZE
static final short ENVELOPE_DL_PAPERSIZEEnvelope DL 110x220 mm- See Also:
-
ENVELOPE_CS_PAPERSIZE
static final short ENVELOPE_CS_PAPERSIZEEnvelope C5 162x229 mm- See Also:
-
ENVELOPE_C5_PAPERSIZE
static final short ENVELOPE_C5_PAPERSIZE- See Also:
-
ENVELOPE_C3_PAPERSIZE
static final short ENVELOPE_C3_PAPERSIZEEnvelope C3 324x458 mm- See Also:
-
ENVELOPE_C4_PAPERSIZE
static final short ENVELOPE_C4_PAPERSIZEEnvelope C4 229x324 mm- See Also:
-
ENVELOPE_C6_PAPERSIZE
static final short ENVELOPE_C6_PAPERSIZEEnvelope C6 114x162 mm- See Also:
-
ENVELOPE_MONARCH_PAPERSIZE
static final short ENVELOPE_MONARCH_PAPERSIZE- See Also:
-
A4_EXTRA_PAPERSIZE
static final short A4_EXTRA_PAPERSIZEA4 Extra - 9.27 x 12.69 in- See Also:
-
A4_TRANSVERSE_PAPERSIZE
static final short A4_TRANSVERSE_PAPERSIZEA4 Transverse - 210x297 mm- See Also:
-
A4_PLUS_PAPERSIZE
static final short A4_PLUS_PAPERSIZEA4 Plus - 210x330 mm- See Also:
-
LETTER_ROTATED_PAPERSIZE
static final short LETTER_ROTATED_PAPERSIZEUS Letter Rotated 11 x 8 1/2 in- See Also:
-
A4_ROTATED_PAPERSIZE
static final short A4_ROTATED_PAPERSIZEA4 Rotated - 297x210 mm- See Also:
-
-
Method Details
-
setPaperSize
void setPaperSize(short size) Set the paper size.- Parameters:
size- the paper size.
-
setScale
void setScale(short scale) Set the scale.- Parameters:
scale- the scale to use
-
setPageStart
void setPageStart(short start) Set the page numbering start.- Parameters:
start- the page numbering start
-
setFitWidth
void setFitWidth(short width) Set the number of pages wide to fit the sheet in- Parameters:
width- the number of pages
-
setFitHeight
void setFitHeight(short height) Set the number of pages high to fit the sheet in- Parameters:
height- the number of pages
-
setLeftToRight
void setLeftToRight(boolean ltor) Set whether to go left to right or top down in ordering- Parameters:
ltor- left to right
-
setLandscape
void setLandscape(boolean ls) Set whether to print in landscape- Parameters:
ls- landscape
-
setValidSettings
void setValidSettings(boolean valid) Valid settings. I'm not for sure.- Parameters:
valid- Valid
-
setNoColor
void setNoColor(boolean mono) Set whether it is black and white- Parameters:
mono- Black and white
-
setDraft
void setDraft(boolean d) Set whether it is in draft mode- Parameters:
d- draft
-
setNotes
void setNotes(boolean printnotes) Print the include notes- Parameters:
printnotes- print the notes
-
setNoOrientation
void setNoOrientation(boolean orientation) Set no orientation. ?- Parameters:
orientation- Orientation.
-
setUsePage
void setUsePage(boolean page) Set whether to use page start- Parameters:
page- Use page start
-
setHResolution
void setHResolution(short resolution) Sets the horizontal resolution.- Parameters:
resolution- horizontal resolution
-
setVResolution
void setVResolution(short resolution) Sets the vertical resolution.- Parameters:
resolution- vertical resolution
-
setHeaderMargin
void setHeaderMargin(double headermargin) Sets the header margin.- Parameters:
headermargin- header margin
-
setCopies
void setCopies(short copies) Sets the number of copies.- Parameters:
copies- number of copies
-
getPaperSize
short getPaperSize()Returns the paper size.- Returns:
- paper size
-
getScale
short getScale()Returns the scale.- Returns:
- scale
-
getPageStart
short getPageStart()Returns the page start.- Returns:
- page start
-
getFitWidth
short getFitWidth()Returns the number of pages wide to fit sheet in.- Returns:
- number of pages wide to fit sheet in
-
getFitHeight
short getFitHeight()Returns the number of pages high to fit the sheet in.- Returns:
- number of pages high to fit the sheet in
-
getLeftToRight
boolean getLeftToRight()Returns the left to right print order.- Returns:
- left to right print order
-
getLandscape
boolean getLandscape()Returns the landscape mode.- Returns:
- landscape mode
-
getValidSettings
boolean getValidSettings()Returns the valid settings.- Returns:
- valid settings
-
getNoColor
boolean getNoColor()Returns the black and white setting.- Returns:
- black and white setting
-
getDraft
boolean getDraft()Returns the draft mode.- Returns:
- draft mode
-
getNotes
boolean getNotes()Returns the print notes.- Returns:
- print notes
-
getNoOrientation
boolean getNoOrientation()Returns the no orientation.- Returns:
- no orientation
-
getUsePage
boolean getUsePage()Returns the use page numbers.- Returns:
- use page numbers
-
getHResolution
short getHResolution()Returns the horizontal resolution.- Returns:
- horizontal resolution
-
getVResolution
short getVResolution()Returns the vertical resolution.- Returns:
- vertical resolution
-
getHeaderMargin
double getHeaderMargin()Returns the header margin.- Returns:
- header margin
-
getCopies
short getCopies()Returns the number of copies.- Returns:
- number of copies
-