GroupDocs.Redaction for Java 24.1 Release Notes
This page contains release notes for GroupDocs.Redaction for Java 24.1
Major Features
There are the following improvements in this release:
- Extend a list of formats, supported by PageAreaRedaction
Full List of Issues Covering all Changes in this Release
Key | Summary | Category |
---|---|---|
REDACTIONNET-432 | Extend a list of formats, supported by PageAreaRedaction | Improvement |
Public API and Backward Incompatible Changes
This section lists public API changes that were introduced in GroupDocs.Redaction for Java 24.1. It includes not only new and obsoleted public methods, but also a description of any changes in the behavior behind the scenes in GroupDocs.Redaction which may affect existing code. Any behavior introduced that could be seen as a regression and modifies existing behavior is especially important and is documented here.
Extend a list of formats, supported by PageAreaRedaction
This improvement extends PageAreaRedaction support on image documents and presentations.
Public API changes
No changes in public API.
Usage
The following example demonstrates how to apply PageAreaRedaction to the last slide a presentation.
Java
Redactor redactor = new Redactor("Sample.pptx")
{
java.util.regex.Pattern rx = java.util.regex.Pattern.compile("urna");
ReplacementOptions optionsText = new ReplacementOptions("[redarea]");
optionsText.setFilters(new RedactionFilter[] {
new PageRangeFilter(PageSeekOrigin.End, 0, 1), // last page
new PageAreaFilter(new java.awt.Point(0, 0), new java.awt.Dimension(300, 100)) // right half of the page
});
RegionReplacementOptions optionsImg = new RegionReplacementOptions(java.awt.Color.RED, new java.awt.Dimension(100, 100));
// Redacted area will be an intersection, which is 100x100
RedactorChangeLog result = redactor.apply(new PageAreaRedaction(rx, optionsText, optionsImg));
if (result.getStatus() != RedactionStatus.Failed)
{
redactor.save();
};
}