SanitizeOptions Class
The base class for classes that contain options for document sanitization.
Declaration
public abstract class SanitizeOptions extends JavaObject
Remarks
The SanitizeOptions class includes options that specify the content and metadata that the API removes from a document. Derived classes add options for content types specific to a document format.
Inherited Members
Inheritance
Methods
getMetadata() Method
Returns whether sanitize options include metadata categories removal.
Declaration
public MetadataRemovalScope getMetadata()
Returns
| Type | Description |
|---|---|
| MetadataRemovalScope | Metadata categories to remove. |
getRemoveActiveXContent() Method
Returns whether sanitize options include ActiveX content removal.
Declaration
public boolean getRemoveActiveXContent()
Returns
| Type | Description |
|---|---|
| boolean |
|
getRemoveComments() Method
Returns whether sanitize options include comment removal.
Declaration
public boolean getRemoveComments()
Returns
| Type | Description |
|---|---|
| boolean |
|
getRemoveCustomXmlParts() Method
Returns whether sanitize options include custom XML part removal.
Declaration
public boolean getRemoveCustomXmlParts()
Returns
| Type | Description |
|---|---|
| boolean |
|
getRemoveMacros() Method
Returns whether sanitize options include macro removal.
Declaration
public boolean getRemoveMacros()
Returns
| Type | Description |
|---|---|
| boolean |
|
getRemoveOleObjects() Method
Returns whether sanitize options include OLE object removal.
Declaration
public boolean getRemoveOleObjects()
Returns
| Type | Description |
|---|---|
| boolean |
|
setMetadata(MetadataRemovalScope value) Method
Sets metadata categories to remove.
Declaration
public void setMetadata(MetadataRemovalScope value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | MetadataRemovalScope | Metadata categories to remove. |
setRemoveActiveXContent(boolean value) Method
Sets whether to remove ActiveX content.
Declaration
public void setRemoveActiveXContent(boolean value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | boolean |
|
setRemoveComments(boolean value) Method
Sets whether to remove comments.
Declaration
public void setRemoveComments(boolean value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | boolean |
|
setRemoveCustomXmlParts(boolean value) Method
Sets whether to remove custom XML parts.
Declaration
public void setRemoveCustomXmlParts(boolean value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | boolean |
|
setRemoveMacros(boolean value) Method
Sets whether to remove macros.
Declaration
public void setRemoveMacros(boolean value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | boolean |
|
setRemoveOleObjects(boolean value) Method
Sets whether to remove OLE objects.
Declaration
public void setRemoveOleObjects(boolean value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | boolean |
|