public class PageAreaRedaction extends RegexRedaction
Represents a complex textual redaction that affects text, images and annotations in an area of the page.
Learn more
| Constructor and Description |
|---|
PageAreaRedaction(Pattern regex,
ReplacementOptions options)
Initializes a new instance of PageAreaRedaction class.
|
PageAreaRedaction(Pattern regex,
ReplacementOptions options,
RegionReplacementOptions imageOptions)
Initializes a new instance of PageAreaRedaction class.
|
| Modifier and Type | Method and Description |
|---|---|
RedactorLogEntry |
applyTo(DocumentFormatInstance formatInstance)
Applies the redaction to a given format instance.
|
RegionReplacementOptions |
getImageOptions()
Gets the
RegionReplacementOptions options with color and area parameters. |
getDescription, getRegularExpressiongetActionOptions, getOcrConnector, processAsTextual, setOcrConnectorpublic PageAreaRedaction(Pattern regex, ReplacementOptions options)
Initializes a new instance of PageAreaRedaction class.
regex - Regular expression to search and replaceoptions - Replacement options (textual, color)public PageAreaRedaction(Pattern regex, ReplacementOptions options, RegionReplacementOptions imageOptions)
Initializes a new instance of PageAreaRedaction class.
regex - Regular expression to search and replaceoptions - Replacement options (textual, color)imageOptions - Replacement options (image area)public RedactorLogEntry applyTo(DocumentFormatInstance formatInstance) throws Exception
Applies the redaction to a given format instance.
applyTo in class RegexRedactionformatInstance - An instance of a document to apply redactionExceptionpublic final RegionReplacementOptions getImageOptions()
Gets the RegionReplacementOptions options with color and area parameters.
RegionReplacementOptions options with color and area parameters.Copyright © 2025. All rights reserved.