Click or drag to resize
Pdf Library for .NET

PdfSanitizeManager Methods

The PdfSanitizeManager type exposes the following members.

Methods
 NameDescription
Public methodCloseCloses the loaded document.
Public methodDisposeReleases the loaded document, the same as Close; calling it more than once does nothing.
Public methodGetDocumentReturns the sanitized document as a new PdfDocument; the document is sanitized first when Sanitize was not called.
Public methodLoad(Byte)Loads a PDF document from a byte array.
Public methodLoad(PdfDocument)Loads an existing PdfDocument. It is not changed: the result is saved with Save(String) or obtained from GetDocument.
Public methodLoad(Stream)Loads a PDF document from a stream.
Public methodLoad(String)Loads a PDF document from a file.
Public methodLoad(Byte, String)Loads a password-protected PDF document from a byte array.
Public methodLoad(PdfDocument, String)Loads an existing password-protected PdfDocument.
Public methodLoad(Stream, String)Loads a password-protected PDF document from a stream.
Public methodLoad(String, String)Loads a password-protected PDF document from a file.
Public methodSanitize Sanitizes the document: removes what Options names, or with Rasterize replaces every page with an image of itself. The result is what Save writes.
Public methodSaveSaves the sanitized document and returns its bytes; the document is sanitized first when Sanitize was not called.
Public methodSave(Stream)Saves the sanitized document to a stream; the document is sanitized first when Sanitize was not called.
Public methodSave(String)Saves the sanitized document to a file; the document is sanitized first when Sanitize was not called.
Public methodScanReports everything the document holds of every kind PdfSanitizeOptions names; changes nothing.
Top
See Also