|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.spire.pdf.PrintSettings
public class PrintSettings
| Constructor Summary | |
|---|---|
PrintSettings()
Initializes a new instance of the class. |
|
| Method Summary | |
|---|---|
javax.print.PrintService[] |
getAllPrinters()
Get local system all printers |
java.lang.String |
getPrinter()
Get printerName |
void |
printToFile(java.lang.String filename)
Set printing to file. |
void |
selectPageRange(int fromPage,
int toPage)
Set print page range. |
void |
selectSinglePageLayout(PdfSinglePageScalingMode pageScalingMode,
boolean autoPortraitOrLandscape,
float customScaling)
Select one page to one paper layout. |
void |
setPaperMargins(int top,
int bottom,
int left,
int right)
Set paper margins,measured in hundredths of an inch. |
void |
setPrinter(java.lang.String printerName)
Set printerName |
| Constructor Detail |
|---|
public PrintSettings()
| Method Detail |
|---|
public java.lang.String getPrinter()
public void setPrinter(java.lang.String printerName)
printerName -
java.awt.print.PrinterExceptionpublic javax.print.PrintService[] getAllPrinters()
public void printToFile(java.lang.String filename)
filename - The file name.
public void selectPageRange(int fromPage,
int toPage)
fromPage - The start page index.toPage - The end page index
public void selectSinglePageLayout(PdfSinglePageScalingMode pageScalingMode,
boolean autoPortraitOrLandscape,
float customScaling)
pageScalingMode - Page scaling mode.autoPortraitOrLandscape - Indicating whether automatic portrait and landscape.customScaling - Custom scaling(unit:percent),default value 100f.Valid only if pageScalingMode== PdfSinglePageScalingMode.CustomScale.
public void setPaperMargins(int top,
int bottom,
int left,
int right)
top - Paper margin top(unit:hundredths of an inch).bottom - Paper margin bottom(unit:hundredths of an inch).left - Paper margin left(unit:hundredths of an inch).right - Paper margin right(unit:hundredths of an inch).
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||