PdfOptimizationActionKind Enum
The kinds of changes of a PdfOptimizationPlan.
public enum PdfOptimizationActionKindFields
| Name | Value | Description |
|---|---|---|
RemoveDocumentInformation | 0 | Removes the document information dictionary (/Info of the trailer, ISO 32000-2, 14.3.3). |
RemoveXmpMetadata | 1 | Removes the XMP metadata stream of the document (/Metadata of the catalog, 14.3.2). |
RemoveJavaScript | 2 | Removes JavaScript: the /JavaScript name tree, and the actions that run JavaScript (12.6.4.17). |
RemoveEmbeddedFiles | 3 | Removes the embedded files of the document (the /EmbeddedFiles name tree and the associated files, 7.11.4). |
RemoveFileAttachmentAnnotation | 4 | Removes a file attachment annotation (12.5.6.15). |
RemovePageThumbnail | 5 | Removes the thumbnail image of a page (/Thumb, 12.3.4). |
RemoveComment | 6 | Removes a markup annotation (a comment, 12.5.6.2) or a pop-up annotation. |
RemoveOpenAction | 7 | Removes the action or destination run when the document is opened (/OpenAction of the catalog, 7.7.2). |
RemoveXfa | 8 | Removes the XFA form (/XFA of the interactive form dictionary, 12.7.9). |
RemoveFormFields | 9 | Removes the interactive form and the widget annotations of its fields (12.7). |
RemoveBookmarks | 10 | Removes the outline (bookmarks, 12.3.3). |
FlattenOptionalContent | 11 | Makes the optional content of a page permanent (8.11): the content of the groups hidden in the default configuration is removed, and the content of the visible groups is kept as ordinary content. |
RemoveOptionalContentProperties | 12 | Removes the optional content properties of the document (/OCProperties of the catalog), once its content is flattened. |
PruneUnusedResource | 13 | Removes a resource that no content of the pages uses (7.8.3). |
PruneUnreachableObject | 14 | Removes an indirect object that cannot be reached from the trailer. |
CompressStream | 15 | Compresses a stream that has no filter with FlateDecode (7.4.4). |
DownsampleImage | 16 | Resamples an image whose resolution on the pages is above the target resolution. |