com.aspose.pdf.printing

Class PrintPageSettings



  • public class PrintPageSettings
    extends Object
    Specifies settings that apply to a single, printed page.
    • Constructor Detail

      • PrintPageSettings

        public PrintPageSettings()
        Initializes a new instance of the PageSettings class using the default printer.
      • PrintPageSettings

        public PrintPageSettings(PdfPrinterSettings value)
        Initializes a new instance of the PageSettings class using a specified printer.
        Parameters:
        value - PdfPrinterSettings object
    • Method Detail

      • getPageSettings

        public com.aspose.ms.System.Drawing.Printing.PageSettings getPageSettings()
        Gets Page Settings
        Returns:
        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 object
      • isColor

        public boolean isColor()
        Gets or sets a value indicating whether the page should be printed in color.
        Returns:
        boolean value
      • setColor

        public void setColor(boolean value)
        Gets or sets a value indicating whether the page should be printed in color.
        Parameters:
        value - 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 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 value
      • isLandscape

        public boolean isLandscape()
        Gets or sets a value indicating whether the page is printed in landscape or portrait orientation.
        Returns:
        boolean value
      • setLandscape

        public void setLandscape(boolean value)
        Gets or sets a value indicating whether the page is printed in landscape or portrait orientation.
        Parameters:
        value - boolean value
      • getMargins

        public PrinterMargins getMargins()
        Gets the margins for this page.
        Returns:
        PrinterMargins object
      • setMargins

        public void setMargins(PrinterMargins value)
        Sets the margins for this page.
        Parameters:
        value - PrinterMargins object
      • getPaperSize

        public PrintPaperSize getPaperSize()
        Gets the paper size for the page.
        Returns:
        PrintPaperSize object
      • setPaperSize

        public void setPaperSize(PrintPaperSize value)
        Sets the paper size for the page.
        Parameters:
        value - PrintPaperSize object
      • getPaperSource

        public PrintPaperSource getPaperSource()
        Gets the page's paper source; for example, the printer's upper tray.
        Returns:
        PrintPaperSource object
      • setPaperSource

        public void setPaperSource(PrintPaperSource value)
        Sets the page's paper source; for example, the printer's upper tray.
        Parameters:
        value - PrintPaperSource object
      • getPrintableArea

        public Rectangle getPrintableArea()
        Gets the bounds of the printable area of the page for the printer.
        Returns:
        Rectangle object
      • getPrinterResolution

        public PdfPrinterResolution getPrinterResolution()
        Gets the printer resolution for the page.
        Returns:
        PdfPrinterResolution object
      • setPrinterResolution

        public void setPrinterResolution(PdfPrinterResolution value)
        Sets the printer resolution for the page.
        Parameters:
        value - PdfPrinterResolution object
      • getPrinterSettings

        public PdfPrinterSettings getPrinterSettings()
        Gets the printer settings associated with the page.
        Returns:
        PdfPrinterSettings object
      • setPrinterSettings

        public void setPrinterSettings(PdfPrinterSettings value)
        Sets the printer settings associated with the page.
        Parameters:
        value - PdfPrinterSettings object