public class PdfPrinterSettings extends Object
Constructor and Description |
---|
PdfPrinterSettings()
Initializes a new instance of the PrinterSettings class.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canDuplex()
Gets a value indicating whether the printer supports double-sided printing.
|
Graphics2D |
createMeasurementGraphics()
Get Graphics2D object
|
Graphics2D |
createMeasurementGraphics(boolean value)
Get Graphics2D object
|
Graphics2D |
createMeasurementGraphics(PrintPageSettings value)
Get Graphics2D object
|
Graphics2D |
createMeasurementGraphics(PrintPageSettings pageSettings,
boolean honorOriginAtMargins)
Get Graphics2D object
|
PdfPrinterSettings |
deepClone()
Get clonned object
|
short |
getCopies()
Gets the number of copies of the document to print.
|
PrintPageSettings |
getDefaultPageSettings()
Gets the default page settings for this printer.
|
int |
getDuplex()
Gets or sets the printer setting for double-sided printing.
|
int |
getFromPage()
Gets or sets the page number of the first page to print.
|
static ArrayList<String> |
getInstalledPrinters()
Gets the names of all printers installed on the computer.
|
int |
getLandscapeAngle()
Gets the angle, in degrees, that the portrait orientation is rotated to produce the landscape
orientation.
|
int |
getMaximumCopies()
Gets the maximum number of copies that the printer enables the user to print at a time.
|
int |
getMaximumPage()
Gets or sets the maximum FromPage or ToPage that can be selected in a PrintDialog.
|
int |
getMinimumPage()
Gets or sets the minimum FromPage or ToPage that can be selected in a PrintDialog.
|
ArrayList<PrintPaperSize> |
getPaperSizes()
Gets the paper sizes that are supported by this printer.
|
ArrayList<PrintPaperSource> |
getPaperSources()
Gets the paper source trays that are available on the printer.
|
String |
getPrinterName()
Gets or sets the name of the printer to use.
|
com.aspose.ms.System.Drawing.Printing.PrinterSettings.PrinterResolutionCollection |
getPrinterResolutions()
Gets all the resolutions that are supported by this printer.
|
com.aspose.ms.System.Drawing.Printing.PrinterSettings |
getPrinterSettings()
Return PrinterSettings object
|
String |
getPrintFileName()
Gets or sets the file name, when printing to a file.
|
int |
getPrintRange()
Gets or sets the page numbers that the user has specified to be printed.
|
int[] |
getSelectedPages()
Gets the number of selected pages to print.
|
int |
getToPage()
Gets or sets the number of the last page to print.
|
boolean |
isCollate()
Gets or sets a value indicating whether the printed document is collated.
|
boolean |
isDefaultPrinter()
Gets a value indicating whether the PrinterName property designates the default printer,
except when the user explicitly sets PrinterName.
|
boolean |
isDirectPrintingSupported(ImageType format)
Gets a value indicating whether the printer is Supported DirectPrinting
|
boolean |
isDirectPrintingSupported(String filename)
Gets a value indicating whether the printer is Supported DirectPrinting
|
boolean |
isPlotter()
Gets a value indicating whether the printer is a plotter.
|
boolean |
isPrintToFile()
Gets a value indicating whether the printing output is sent to a file instead of a port.
|
boolean |
isSupportsColor()
Gets a value indicating whether this printer supports color printing.
|
boolean |
isValid()
Gets a value indicating whether the PrinterName property designates a valid printer.
|
void |
setCollate(boolean value)
Gets or sets a value indicating whether the printed document is collated.
|
void |
setCopies(short value)
Sets the number of copies of the document to print.
|
void |
setDuplex(int value)
Gets or sets the printer setting for double-sided printing.
|
void |
setFromPage(int value)
Gets or sets the page number of the first page to print.
|
void |
setMaximumPage(int value)
Gets or sets the maximum FromPage or ToPage that can be selected in a PrintDialog.
|
void |
setMinimumPage(int value)
Gets or sets the minimum FromPage or ToPage that can be selected in a PrintDialog.
|
void |
setPrinterName(String value)
Sets the name of the printer to use.
|
void |
setPrintFileName(String value)
Sets the filename to print.
|
void |
setPrintRange(int value)
Sets the page numbers that the user has specified to be printed.
|
void |
setPrintToFile(boolean value)
Sets a value indicating whether the printing output is sent to a file instead of a port.
|
void |
setSelectedPages(int[] pagesList)
Sets the number of selected pages to print.
|
void |
setToPage(int value)
Sets the number of the last page to print.
|
public PdfPrinterSettings()
public com.aspose.ms.System.Drawing.Printing.PrinterSettings getPrinterSettings()
public boolean canDuplex()
public int getDuplex()
DuplexKind
public void setDuplex(int value)
value
- int valueDuplexKind
public Graphics2D createMeasurementGraphics()
public Graphics2D createMeasurementGraphics(boolean value)
value
- boolean valuepublic Graphics2D createMeasurementGraphics(PrintPageSettings value)
value
- PrintPageSettings valuepublic Graphics2D createMeasurementGraphics(PrintPageSettings pageSettings, boolean honorOriginAtMargins)
pageSettings
- PrintPageSettings valuehonorOriginAtMargins
- boolean valuepublic PdfPrinterSettings deepClone()
public boolean isCollate()
public void setCollate(boolean value)
value
- boolean valuepublic short getCopies()
public void setCopies(short value)
value
- number of copiespublic PrintPageSettings getDefaultPageSettings()
public int getFromPage()
public int getLandscapeAngle()
public int getMaximumCopies()
public int getMaximumPage()
public int getMinimumPage()
public ArrayList<PrintPaperSize> getPaperSizes()
ArrayList<PrintPaperSize>
objectpublic ArrayList<PrintPaperSource> getPaperSources()
ArrayList<PrintPaperSource>
objectpublic String getPrinterName()
public com.aspose.ms.System.Drawing.Printing.PrinterSettings.PrinterResolutionCollection getPrinterResolutions()
public String getPrintFileName()
public int getPrintRange()
PdfPrintRange
public boolean isPrintToFile()
public void setPrintToFile(boolean value)
value
- boolean valuepublic boolean isSupportsColor()
public int getToPage()
public static ArrayList<String> getInstalledPrinters()
ArrayList<String>
objectpublic boolean isDefaultPrinter()
public boolean isDirectPrintingSupported(String filename)
filename
- String objectpublic boolean isDirectPrintingSupported(ImageType format)
format
- ImageType objectpublic boolean isPlotter()
public boolean isValid()
public void setFromPage(int value)
value
- int valuepublic void setMaximumPage(int value)
value
- int valuepublic void setMinimumPage(int value)
value
- int valuepublic void setPrinterName(String value)
value
- string valuepublic void setPrintFileName(String value)
value
- string valuepublic void setPrintRange(int value)
value
- PdfPrintRange elementPdfPrintRange
public void setToPage(int value)
value
- PdfPrintRange elementPdfPrintRange
public void setSelectedPages(int[] pagesList)
pagesList
- int arrayPdfPrintRange
public int[] getSelectedPages()
PdfPrintRange