HiddenDataSanitizer

Inheritance: java.lang.Object, com.aspose.pdf.security.HiddenDataSanitizer

public final class HiddenDataSanitizer extends Object

Represents a class for sanitizing hidden data.

Constructors

ConstructorDescription
HiddenDataSanitizerProvides 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

MethodDescription
sanitizeSanitizes a given PDF document by removing or transforming hidden data.
sanitizeAllToImagesReplaces 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.
sanitizeAllToImagesReplaces 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.