Class OperationSanitizePages


  • public class OperationSanitizePages
    extends Object
    If this function is enabled, all the selected pages in the document will be flattened. When this is done, an image of the visible contents in the corresponding page will be generated and will be used to replace all the page contents. This will remove any complex content that may be hiding confidential data.
    • Constructor Detail

      • OperationSanitizePages

        public OperationSanitizePages()
    • Method Detail

      • getDpi

        @Nullable
        public @Nullable Integer getDpi()
        Used to specify the resolution for the image being generated. Higher resolutions will result in lower quality loss, but may also result in significantly larger document sizes. minimum: 0 maximum: 9600
        Returns:
        dpi
      • setDpi

        public void setDpi​(Integer dpi)
      • getEnabled

        @Nullable
        public @Nullable Boolean getEnabled()
        If set to \"false\", this sanitize operation shall not be applied.
        Returns:
        enabled
      • setEnabled

        public void setEnabled​(Boolean enabled)
      • getPages

        @Nullable
        public @Nullable String getPages()
        Defines which page(s) should be flattened. 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)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object