Package net.webpdf.wsclient.openapi
Class OperationSanitizePages
- java.lang.Object
-
- net.webpdf.wsclient.openapi.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.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_DPIstatic StringJSON_PROPERTY_ENABLEDstatic StringJSON_PROPERTY_PAGES
-
Constructor Summary
Constructors Constructor Description OperationSanitizePages()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OperationSanitizePagesdpi(Integer dpi)OperationSanitizePagesenabled(Boolean enabled)booleanequals(Object o)@Nullable IntegergetDpi()Used to specify the resolution for the image being generated.@Nullable BooleangetEnabled()If set to \"false\", this sanitize operation shall not be applied.@Nullable StringgetPages()Defines which page(s) should be flattened.inthashCode()OperationSanitizePagespages(String pages)voidsetDpi(Integer dpi)voidsetEnabled(Boolean enabled)voidsetPages(String pages)StringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_DPI
public static final String JSON_PROPERTY_DPI
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ENABLED
public static final String JSON_PROPERTY_ENABLED
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAGES
public static final String JSON_PROPERTY_PAGES
- See Also:
- Constant Field Values
-
-
Method Detail
-
dpi
public OperationSanitizePages dpi(Integer dpi)
-
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)
-
enabled
public OperationSanitizePages enabled(Boolean enabled)
-
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)
-
pages
public OperationSanitizePages pages(String pages)
-
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)
-
-