com.aspose.pdf.printing

Class PrintPaperSize



  • public class PrintPaperSize
    extends Object
    Specifies the size of a piece of paper.
    • Constructor Detail

      • PrintPaperSize

        public PrintPaperSize()
        Initializes a new instance of the PaperSize class.
      • PrintPaperSize

        public PrintPaperSize(String name,
                              int width,
                              int height)
        Initializes a new instance of the PaperSize class.
        Parameters:
        name - String value
        width - int value
        height - int value
    • Method Detail

      • getHeight

        public int getHeight()
        Gets or sets the height of the paper, in hundredths of an inch.
        Returns:
        int value
      • getKind

        public int getKind()
        Gets the type of paper.
        Returns:
        int value
        See Also:
        PrinterPaperKind
      • getPaperName

        public String getPaperName()
        Gets or sets the name of the type of paper.
        Returns:
        String value
      • getRawKind

        public int getRawKind()
        Gets or sets an integer representing one of the PaperSize values or a custom value.
        Returns:
        int value
      • getWidth

        public int getWidth()
        Gets or sets the width of the paper, in hundredths of an inch.
        Returns:
        int value
      • setHeight

        public void setHeight(int value)
        Gets or sets the height of the paper, in hundredths of an inch.
        Parameters:
        value - int value
      • setPaperName

        public void setPaperName(String value)
        Gets the name of the type of paper.
        Parameters:
        value - String value
      • setWidth

        public void setWidth(int value)
        Sets the width of the paper, in hundredths of an inch.
        Parameters:
        value - int value
      • toString

        public String toString()
        Gets the name of this instance.
        Overrides:
        toString in class Object
        Returns:
        String value