Package com.itextpdf.pdfcleanup
Class CleanUpProperties
java.lang.Object
com.itextpdf.pdfcleanup.CleanUpProperties
Contains properties for
PdfCleanUpTool operations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetPathOffsetApproximationPropertiesspecifying approximation parameters forClipperOffsetoperations.Gets the overlap ratio.booleanCheck if page annotations will be processed.setMetaInfo(com.itextpdf.commons.actions.contexts.IMetaInfo metaInfo) Sets additional meta info.setOffsetProperties(PathOffsetApproximationProperties offsetProperties) SetPathOffsetApproximationPropertiesspecifying approximation parameters forClipperOffsetoperations.setOverlapRatio(Double overlapRatio) Sets the overlap ratio.setProcessAnnotations(boolean processAnnotations) Set if page annotations will be processed.
-
Constructor Details
-
CleanUpProperties
public CleanUpProperties()Creates default CleanUpProperties instance.
-
-
Method Details
-
setMetaInfo
Sets additional meta info.- Parameters:
-
metaInfo- the meta info to set - Returns:
-
this
CleanUpPropertiesinstance
-
isProcessAnnotations
public boolean isProcessAnnotations()Check if page annotations will be processed. Default:true.- Returns:
-
trueif annotations will be processed by thePdfCleanUpTool
-
setProcessAnnotations
Set if page annotations will be processed. Default processing behaviour: remove annotation if there is overlap with a redaction region.- Parameters:
-
processAnnotations- is page annotations will be processed - Returns:
-
this
CleanUpPropertiesinstance
-
getOverlapRatio
Gets the overlap ratio. This is a value between 0 and 1 that indicates how much the content region should overlap with the redaction area to be removed.- Returns:
-
the overlap ratio or
nullif it has not been set.
-
setOverlapRatio
Sets the overlap ratio. This is a value between 0 and 1 that indicates how much the content region should overlap with the redaction area to be removed.Example: if the overlap ratio is set to 0.3, the content region will be removed if it overlaps with the redaction area by at least 30%.
- Parameters:
-
overlapRatio- the overlap ratio to set - Returns:
-
this
CleanUpPropertiesinstance
-
getOffsetProperties
GetPathOffsetApproximationPropertiesspecifying approximation parameters forClipperOffsetoperations.- Returns:
-
PathOffsetApproximationPropertiesparameters
-
setOffsetProperties
SetPathOffsetApproximationPropertiesspecifying approximation parameters forClipperOffsetoperations.- Parameters:
-
offsetProperties-PathOffsetApproximationPropertiesto set - Returns:
-
this
CleanUpPropertiesinstance
-