ReplaceTextStrategy
Overview
ReplaceTextStrategy is a class in Aspose.PDF FOSS for Java.
Controls how {@link PdfContentEditor#replaceText(String, String)} performs replacements.
This class provides 4 methods for working with ReplaceTextStrategy objects in Java programs.
Available methods include: getReplaceScope, isRegularExpressionUsed, setRegularExpressionUsed, setReplaceScope.
All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package.
Properties: regularExpressionUsed, replaceScope.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
regularExpressionUsed | boolean | Read | Returns whether regular-expression matching is enabled. |
replaceScope | Scope | Read | Returns the replacement scope. |
Methods
| Signature | Description |
|---|---|
isRegularExpressionUsed() → boolean | Returns whether regular-expression matching is enabled. |
setRegularExpressionUsed(regularExpressionUsed: boolean) | Enables or disables regular-expression matching. |
getReplaceScope() → Scope | Returns the replacement scope. |
setReplaceScope(replaceScope: Scope) | Sets the replacement scope. |