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