HiddenDataSanitizer
Inheritance: java.lang.Object, com.aspose.pdf.security.HiddenDataSanitizer
public final class HiddenDataSanitizer extends Object
Represents a class for sanitizing hidden data.
Constructors
| Constructor | Description |
|---|---|
| HiddenDataSanitizer | Provides functionality to sanitize hidden data from a PDF document, ensuring that sensitive or unnecessary information such as metadata, annotations, JavaScripts, or private content is removed or transformed. |
Methods
| Method | Description |
|---|---|
| sanitize | Sanitizes a given PDF document by removing or transforming hidden data. |
| sanitizeAllToImages | Replaces page content with images and removes other hidden data. Allows you to remove hidden text with a background color, as well as text hidden under images. Also, completely removes all interactive elements. The document is converted to images as is, and then cleared of any remaining hidden data. If you need to clear first and then convert, use the main class method. |
| sanitizeAllToImages | Replaces page content with images and removes other hidden data. Allows you to remove hidden text with a background color, as well as text hidden under images. Also completely removes all interactive elements. The document is converted to images as is, and then cleared of any remaining hidden data. If you need to clear first and then convert, use the main class method. |
HiddenDataSanitizer
Provides functionality to sanitize hidden data from a PDF document, ensuring that sensitive or unnecessary information such as metadata, annotations, JavaScripts, or private content is removed or transformed.
sanitize
Sanitizes a given PDF document by removing or transforming hidden data.
sanitizeAllToImages
Replaces page content with images and removes other hidden data. Allows you to remove hidden text with a background color, as well as text hidden under images. Also, completely removes all interactive elements. The document is converted to images as is, and then cleared of any remaining hidden data. If you need to clear first and then convert, use the main class method.
sanitizeAllToImages
Replaces page content with images and removes other hidden data. Allows you to remove hidden text with a background color, as well as text hidden under images. Also completely removes all interactive elements. The document is converted to images as is, and then cleared of any remaining hidden data. If you need to clear first and then convert, use the main class method.