com.aspose.note

Class DocumentPrintAttributeSet

    • Constructor Detail

      • DocumentPrintAttributeSet

        public DocumentPrintAttributeSet(int copies)

        Initializes a new instance of DocumentPrintAttributeSet. By default all document's pages are printed.

        Parameters:
        copies - The number of document's copies to be printed.
      • DocumentPrintAttributeSet

        public DocumentPrintAttributeSet(String printerName,
                                         int copies)

        Initializes a new instance of DocumentPrintAttributeSet. By default all document's pages are printed.

        Parameters:
        printerName - The name of the printer.
        copies - The number of document's copies to be printed.
      • DocumentPrintAttributeSet

        public DocumentPrintAttributeSet(String printerName)

        Initializes a new instance of DocumentPrintAttributeSet. By default the only copy of every page.

        Parameters:
        printerName - The name of the printer.
      • DocumentPrintAttributeSet

        public DocumentPrintAttributeSet()

        Initializes a new instance of DocumentPrintAttributeSet. By default the only copy of every page.

    • Method Detail

      • setCollate

        public void setCollate(boolean value)

        Sets a value indicating whether document is collated.

        Parameters:
        value - true is equivalent to setting of SheetCollate.COLLATED false is equivalent to setting of SheetCollate.UNCOLLATED
      • getCopies

        public int getCopies()
      • setCopies

        public void setCopies(int value)

        Sets the number of copies to be printed.

        Parameters:
        value - The number of copies to be printed.
      • setDuplex

        public void setDuplex(boolean value)

        Sets the printer setting for double-side printing.

        Parameters:
        value - true is equivalent to setting of Sides.DUPLEX false is equivalent to setting of Sides.ONE_SIDED
      • getPrinterName

        public String getPrinterName()
      • setPrinterName

        public void setPrinterName(String printerName,
                                   Locale locale)

        The name of the printer to be used.

        Parameters:
        printerName - The name of the printer.
        locale - printerName's locale.
      • setPrinterName

        public void setPrinterName(String printerName)

        The name of the printer to be used.

        Parameters:
        printerName - The name of the printer.
      • getLandscape

        public boolean getLandscape()
      • setLandscape

        public void setLandscape(boolean value)

        Sets the orientation of the page.

        Parameters:
        value - true is equivalent to setting of OrientationRequested.LANDSCAPE false is equivalent to setting of OrientationRequested.PORTRAIT
      • setPrintRange

        public void setPrintRange(int from,
                                  int to)

        Sets the page range to be printed.

        Parameters:
        from - The first page.
        to - The last page.
      • setPrintRange

        public void setPrintRange(int page)

        Sets the single page to be printed.

        Parameters:
        page - The page to be printed.