 |
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.UniversalAssembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.6
Syntax[FlagsAttribute]
public enum PdfSanitizeOptions
<FlagsAttribute>
Public Enumeration PdfSanitizeOptions
Members| Member name | Value | Description |
|---|
| None | 0 | Nothing is removed (the earlier revisions and the signatures still go: the file is written whole). |
| JavaScript | 1 | JavaScript everywhere: the document's scripts, the open action, the additional actions of the document, its pages, annotations and form fields. |
| Actions | 2 | Actions 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. |
| ExternalLinks | 4 | Web links (URI actions). Off by default: links to web pages are usually wanted. |
| EmbeddedFiles | 8 | Embedded files, file attachment annotations and associated files. |
| Multimedia | 16 | 3D, rich media, screen, movie and sound annotations. |
| Xfa | 32 | The XFA form, whose scripts and data live outside the pages. |
| HiddenLayers | 64 | Layers that do not show when the document opens, with what they draw. |
| InvisibleText | 128 | Text drawn invisible. Off by default: the recognized text of a scanned document is such text. |
| PrivateData | 256 | Application data (/PieceInfo, an embedded search index) and page thumbnails. |
| Default | 379 | The active, embedded and hidden content: JavaScript, Actions, EmbeddedFiles, Multimedia, Xfa, HiddenLayers and PrivateData. |
| Metadata | 512 | The document information and the XMP metadata; a PDF/A or PDF/UA identification is kept. Off by default. |
| FlattenFormFields | 2,048 | Form fields burnt into the pages, so nothing can be filled in. Off by default. |
| All | 3,071 | Everything above. |
See Also