public class

Sanitizer

extends Object
java.lang.Object
   ↳ com.pdftron.pdf.Sanitizer

Class Overview

The class Sanitizer. static interface to Apryse SDKs document sanitization functionality

Summary

Public Methods
static SanitizeOptions getSanitizableContent(Doc doc)
Retrieves the types of sanitizable content that are present within the document.
static void sanitizeDocument(Doc doc)
Performs document sanitization based on the specified sanitize options.
static void sanitizeDocument(Doc doc, SanitizeOptions options)
Performs document sanitization based on the specified sanitize options.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static SanitizeOptions getSanitizableContent (Doc doc)

Retrieves the types of sanitizable content that are present within the document.

Parameters
doc The document to inspect for sanitizable content.
Returns
  • Returns the sanitization options with all sanitizable content present within the document enabled.

public static void sanitizeDocument (Doc doc)

Performs document sanitization based on the specified sanitize options. If no options are provided, all sanitizable content present will be removed.

Parameters
doc The document to sanitize.

public static void sanitizeDocument (Doc doc, SanitizeOptions options)

Performs document sanitization based on the specified sanitize options. If no options are provided, all sanitizable content present will be removed.

Parameters
doc The document to sanitize.
options Document sanitization options (optional).