Aspose::Pdf::Security::HiddenDataSanitization::HiddenDataSanitizer::SanitizeAllToImages method

HiddenDataSanitizer::SanitizeAllToImages method

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.

static void Aspose::Pdf::Security::HiddenDataSanitization::HiddenDataSanitizer::SanitizeAllToImages(const System::SharedPtr<Document> &document, int32_t dpi=150)
ParameterTypeDescription
documentconst System::SharedPtr<Document>&The docunent object.
dpiint32_tThe dpi of pages’ images.

See Also