HiddenDataSanitizer
Overview
HiddenDataSanitizer is a class in Aspose.PDF FOSS for .NET.
Strips hidden or sensitive data (annotations, JavaScript/actions, attachments, optional-content layers, form fields, metadata) from a document per the supplied HiddenDataSanitizationOptions.
This class provides 4 methods for working with HiddenDataSanitizer objects in .NET programs.
Available methods include: HiddenDataSanitizer, Sanitize, SanitizeAllToImages.
All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Methods
| Signature | Description |
|---|---|
HiddenDataSanitizer() | Create a sanitizer with default (all-off) options. |
HiddenDataSanitizer(options: HiddenDataSanitizationOptions) | Create a sanitizer with the supplied options. |
SanitizeAllToImages(document: Document, dpi: int) | Rasterise every page of document to a background image, discarding all original page content. |
Sanitize(document: Document) | Apply the configured sanitization to document in place. |