Click or drag to resize
Pdf Library for .NET

PdfSanitizeOptions Enumeration

What PdfSanitizeManager removes from a document. The members combine; Default removes everything active, embedded or hidden and keeps web links, metadata, form fields and invisible text.

Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.6
Syntax
[FlagsAttribute]
public enum PdfSanitizeOptions
Members
Member nameValueDescription
None0Nothing is removed (the earlier revisions and the signatures still go: the file is written whole).
JavaScript1JavaScript everywhere: the document's scripts, the open action, the additional actions of the document, its pages, annotations and form fields.
Actions2Actions that leave the document or change it: launch a file, submit or import form data, go to another file, play media, hide fields, change layers.
ExternalLinks4Web links (URI actions). Off by default: links to web pages are usually wanted.
EmbeddedFiles8Embedded files, file attachment annotations and associated files.
Multimedia163D, rich media, screen, movie and sound annotations.
Xfa32The XFA form, whose scripts and data live outside the pages.
HiddenLayers64Layers that do not show when the document opens, with what they draw.
InvisibleText128Text drawn invisible. Off by default: the recognized text of a scanned document is such text.
PrivateData256Application data (/PieceInfo, an embedded search index) and page thumbnails.
Default379The active, embedded and hidden content: JavaScript, Actions, EmbeddedFiles, Multimedia, Xfa, HiddenLayers and PrivateData.
Metadata512The document information and the XMP metadata; a PDF/A or PDF/UA identification is kept. Off by default.
FlattenFormFields2,048Form fields burnt into the pages, so nothing can be filled in. Off by default.
All3,071Everything above.
See Also