public interface IRedaction
Modifier and Type | Method and Description |
---|---|
java.util.List<RedactionSuggestion> |
getRedactionSuggestions(java.lang.String ticket,
java.lang.String objectId,
long lastModified,
int numPages)
Returns a list of suggested redactions and their locations which have been detected in the document.
|
com.aspose.pdf.Document |
redactTermsFromDocument(java.lang.String ticket,
java.lang.String objectId,
java.util.List<java.lang.String> stringToRedact)
Helper that finds a string of text in a PDF and redacts instances of that text
|
java.util.List<java.lang.String> |
redactTermsFromFolder(java.lang.String ticket,
java.lang.String containerId,
java.util.List<java.lang.String> stringsToRedact,
java.lang.String redactionMode,
java.lang.Boolean newVersion,
java.lang.Boolean majorVersion)
A method which will redact a list of terms from every document in a given folder.
|
java.util.List<java.lang.String> |
redactTermsFromListOfIds(java.lang.String ticket,
java.util.List<java.lang.String> objectIds,
java.util.List<java.lang.String> stringsToRedact,
java.lang.String redactionMode,
java.lang.Boolean newVersion,
java.lang.Boolean majorVersion)
A method which will redact a list of terms from every objectID passed in
|
RedactionInfo |
saveRedactions(java.lang.String ticket,
java.lang.String objectId,
java.lang.String parentId,
java.lang.String redactionMode,
Redaction[] redactions,
java.lang.Boolean newVersion,
java.lang.Boolean majorVersion)
Saves the provided redactions, permanently modifying the provided document.
|
RedactionInfo saveRedactions(java.lang.String ticket, java.lang.String objectId, java.lang.String parentId, java.lang.String redactionMode, Redaction[] redactions, java.lang.Boolean newVersion, java.lang.Boolean majorVersion)
ticket
- A valid OC ticket.objectId
- The objectId of the document to save redactions for.parentId
- The parentId of the document to save redactions for.redactionMode
- The mode under which, we're saving these redactions. Determines whether or not we keep an unredacted copy when saving redactions.redactions
- An array of redactions to save on the document.newVersion
- - true if the a new version of the document will be created when the document is redacted. if false, the document in the repository will remain the same version when redactedmajorVersion
- - true if the a major version of the document will be created when the document is redacted. if false, the document in the repository will default to a minor version when redactedjava.util.List<RedactionSuggestion> getRedactionSuggestions(java.lang.String ticket, java.lang.String objectId, long lastModified, int numPages)
ticket
- A valid OC ticket.objectId
- The objectId of the PDF object to create suggested redactions for.lastModified
- The timestamp this object was last modified (used for caching purposes).numPages
- number of pages in the documentjava.util.List<java.lang.String> redactTermsFromFolder(java.lang.String ticket, java.lang.String containerId, java.util.List<java.lang.String> stringsToRedact, java.lang.String redactionMode, java.lang.Boolean newVersion, java.lang.Boolean majorVersion)
ticket
- - A valid OC ticket.containerId
- - The objectId of the folder that we will redact documents from.stringsToRedact
- - The string that will be redacted from the PDF documents contained in the folderredactionMode
- The mode under which, we're saving these redactions. Determines whether or not we keep an unredacted copy when saving redactions.newVersion
- - true if the a new version of the document will be created when the document is redacted. if false, the document in the repository will remain the same version when redactedmajorVersion
- - true if the a major version of the document will be created when the document is redacted. if false, the document in the repository will default to a minor version when redactedcom.aspose.pdf.Document redactTermsFromDocument(java.lang.String ticket, java.lang.String objectId, java.util.List<java.lang.String> stringToRedact)
ticket
- - a valid OC ticketobjectId
- - the id of the document to be redactedstringToRedact
- - the list of strings that will be redacted from the PDF documentjava.util.List<java.lang.String> redactTermsFromListOfIds(java.lang.String ticket, java.util.List<java.lang.String> objectIds, java.util.List<java.lang.String> stringsToRedact, java.lang.String redactionMode, java.lang.Boolean newVersion, java.lang.Boolean majorVersion)
ticket
- - A valid OC ticket.objectIds
- - The objectIds selected that we will redact documents from.stringsToRedact
- - The list of strings that will be redacted from the PDF documents contained in the folderredactionMode
- The mode under which, we're saving these redactions. Determines whether or not we keep an unredacted copy when saving redactions.newVersion
- - true if the a new version of the document will be created when the document is redacted. if false, the document in the repository will remain the same version when redactedmajorVersion
- - true if the a major version of the document will be created when the document is redacted. if false, the document in the repository will default to a minor version when redacted