Class OperationScalePagesToolboxScale


  • public class OperationScalePagesToolboxScale
    extends Object
    Used to define page scaling operations.
    • Constructor Detail

      • OperationScalePagesToolboxScale

        public OperationScalePagesToolboxScale()
    • Method Detail

      • getDimensions

        @Nullable
        public @Nullable OperationPaddedRectangle getDimensions()
        Get dimensions
        Returns:
        dimensions
      • getHorizontalAlignment

        @Nullable
        public @Nullable String getHorizontalAlignment()
        If margins are created when the page is scaled or if the page content must be positioned relative to a context (for example, the crop box), this value specifies how margins are to be split and how overall page content is to be positioned on the page. * left = Contents are to be arranged left-justified. * center = Content should be centered. * right = Contents should be arranged right-justified.
        Returns:
        horizontalAlignment
      • setHorizontalAlignment

        public void setHorizontalAlignment​(String horizontalAlignment)
      • getPages

        @Nullable
        public @Nullable String getPages()
        Specifies which page(s) should be scaled. The page number can be either a single page, a range of pages or a list (separated by commas) (e.g. \"1.5-6.9\"). The specification of all pages is done with \"\\*\".
        Returns:
        pages
      • setPages

        public void setPages​(String pages)
      • getPreserveAspectRatio

        @Nullable
        public @Nullable Boolean getPreserveAspectRatio()
        Specifies whether the ratio of the page dimensions to each other should be maintained when scaling the page. This may result in deviations from the given target height or width (depending on requirements).
        Returns:
        preserveAspectRatio
      • setPreserveAspectRatio

        public void setPreserveAspectRatio​(Boolean preserveAspectRatio)
      • getScaleBoxes

        @Nullable
        public @Nullable Boolean getScaleBoxes()
        Specifies whether the scaling of the page should also affect the boxes (Mediabox, Cropbox, etc.) of a page. If this is not the case (false), the actual page dimensions, crop boxes, etc. remain as they were originally and only page contents are scaled. The content can become much smaller or larger than the containing page in this way, which can lead to either large blank areas or overflow of the page content.
        Returns:
        scaleBoxes
      • setScaleBoxes

        public void setScaleBoxes​(Boolean scaleBoxes)
      • getVerticalAlignment

        @Nullable
        public @Nullable String getVerticalAlignment()
        If margins are created when the page is scaled or if the page content must be positioned relative to a context (for example, the crop box), this value specifies how margins are to be split and how overall page content is to be positioned on the page. * top = Content should be positioned at the top of the page. * center = Content should be centered. * bottom = content should be positioned at the bottom.
        Returns:
        verticalAlignment
      • setVerticalAlignment

        public void setVerticalAlignment​(String verticalAlignment)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object