public class PrintPageSettings extends Object
Constructor and Description |
---|
PrintPageSettings()
Initializes a new instance of the PageSettings class using the default printer.
|
PrintPageSettings(PdfPrinterSettings value)
Initializes a new instance of the PageSettings class using a specified printer.
|
Modifier and Type | Method and Description |
---|---|
Rectangle |
getBounds()
Gets the size of the page, taking into account the page orientation specified by the
Landscape property.
|
float |
getHardMarginX()
Gets the x-coordinate, in hundredths of an inch, of the hard margin at the left of the page.
|
float |
getHardMarginY()
Gets the y-coordinate, in hundredths of an inch, of the hard margin at the top of the page.
|
PrinterMargins |
getMargins()
Gets the margins for this page.
|
com.aspose.ms.System.Drawing.Printing.PageSettings |
getPageSettings()
Gets Page Settings
|
PrintPaperSize |
getPaperSize()
Gets the paper size for the page.
|
PrintPaperSource |
getPaperSource()
Gets the page's paper source; for example, the printer's upper tray.
|
Rectangle |
getPrintableArea()
Gets the bounds of the printable area of the page for the printer.
|
PdfPrinterResolution |
getPrinterResolution()
Gets the printer resolution for the page.
|
PdfPrinterSettings |
getPrinterSettings()
Gets the printer settings associated with the page.
|
boolean |
isColor()
Gets or sets a value indicating whether the page should be printed in color.
|
boolean |
isLandscape()
Gets or sets a value indicating whether the page is printed in landscape or portrait
orientation.
|
void |
setColor(boolean value)
Gets or sets a value indicating whether the page should be printed in color.
|
void |
setLandscape(boolean value)
Gets or sets a value indicating whether the page is printed in landscape or portrait
orientation.
|
void |
setMargins(PrinterMargins value)
Sets the margins for this page.
|
void |
setPaperSize(PrintPaperSize value)
Sets the paper size for the page.
|
void |
setPaperSource(PrintPaperSource value)
Sets the page's paper source; for example, the printer's upper tray.
|
void |
setPrinterResolution(PdfPrinterResolution value)
Sets the printer resolution for the page.
|
void |
setPrinterSettings(PdfPrinterSettings value)
Sets the printer settings associated with the page.
|
public PrintPageSettings()
public PrintPageSettings(PdfPrinterSettings value)
value
- PdfPrinterSettings objectpublic com.aspose.ms.System.Drawing.Printing.PageSettings getPageSettings()
public Rectangle getBounds()
public boolean isColor()
public void setColor(boolean value)
value
- boolean valuepublic float getHardMarginX()
public float getHardMarginY()
public boolean isLandscape()
public void setLandscape(boolean value)
value
- boolean valuepublic PrinterMargins getMargins()
public void setMargins(PrinterMargins value)
value
- PrinterMargins objectpublic PrintPaperSize getPaperSize()
public void setPaperSize(PrintPaperSize value)
value
- PrintPaperSize objectpublic PrintPaperSource getPaperSource()
public void setPaperSource(PrintPaperSource value)
value
- PrintPaperSource objectpublic Rectangle getPrintableArea()
public PdfPrinterResolution getPrinterResolution()
public void setPrinterResolution(PdfPrinterResolution value)
value
- PdfPrinterResolution objectpublic PdfPrinterSettings getPrinterSettings()
public void setPrinterSettings(PdfPrinterSettings value)
value
- PdfPrinterSettings object