Class OperationToolboxPrintPrint


  • public class OperationToolboxPrintPrint
    extends Object
    The print operation element can be used to print documents.
    • Constructor Detail

      • OperationToolboxPrintPrint

        public OperationToolboxPrintPrint()
    • Method Detail

      • getAutoRotate

        @Nullable
        public @Nullable Boolean getAutoRotate()
        If \"true,\" the PDF document's orientation will be automatically adjusted in line with the printer's configured paper orientation.
        Returns:
        autoRotate
      • setAutoRotate

        public void setAutoRotate​(Boolean autoRotate)
      • getCenterInPage

        @Nullable
        public @Nullable Boolean getCenterInPage()
        If \"true\", the PDF page will be centered in the middle of the paper.
        Returns:
        centerInPage
      • setCenterInPage

        public void setCenterInPage​(Boolean centerInPage)
      • getCopies

        @Nullable
        public @Nullable Integer getCopies()
        Defines the number of copies that should be printed. minimum: 1
        Returns:
        copies
      • setCopies

        public void setCopies​(Integer copies)
      • getDpi

        @Nullable
        public @Nullable Integer getDpi()
        Sets the printer resolution for the \"image\" print mode. If this value is set to 0, the document will be printed, using a resolution suggested by the printer. (High resolutions will lead to better quality results, but will tremendously increase the required time and resources.)
        Returns:
        dpi
      • setDpi

        public void setDpi​(Integer dpi)
      • getExpandToMargins

        @Nullable
        public @Nullable Boolean getExpandToMargins()
        If \"true,\" any PDF page that is smaller than the paper will be enlarged to fit the paper size.
        Returns:
        expandToMargins
      • setExpandToMargins

        public void setExpandToMargins​(Boolean expandToMargins)
      • getJobName

        @Nullable
        public @Nullable String getJobName()
        This attribute is used to define the name of the print job (as shown in the Print Spooler in Windows, for example).
        Returns:
        jobName
      • setJobName

        public void setJobName​(String jobName)
      • getMode

        @Nullable
        public @Nullable OperationToolboxPrintPrint.ModeEnum getMode()
        Select the printing mode, that shall be used. * default = The drawing operations are applied to the printout as defined in the PDF document. * image = Creates an image of a fixed resolution for every page of the document, to guarantee a uniform printing result. * raster = Every page of the document is rastered before printing. This is a compatibility mode for older printers.
        Returns:
        mode
      • getPages

        @Nullable
        public @Nullable String getPages()
        Defines which page(s) should be printed. The page number can be an individual page, a page range, or a list (separated with commas) (e.g., \"1,5-6,9\"). To specify \"all pages,\" use an asterisk (\"\\*\").
        Returns:
        pages
      • setPages

        public void setPages​(String pages)
      • getPrinterName

        @Nullable
        public @Nullable String getPrinterName()
        This attribute is used to specify the name of the printer that should be used to print the PDF document. If a printer is not declared, then the system's default printer will be used for printing.
        Returns:
        printerName
      • setPrinterName

        public void setPrinterName​(String printerName)
      • getShrinkToMargins

        @Nullable
        public @Nullable Boolean getShrinkToMargins()
        If \"true,\" any PDF page that is larger than the paper will be shrunk to fit the paper size.
        Returns:
        shrinkToMargins
      • setShrinkToMargins

        public void setShrinkToMargins​(Boolean shrinkToMargins)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object