PdfOptimizationActionKind Enum

The kinds of changes of a PdfOptimizationPlan.

public enum PdfOptimizationActionKind

Fields

NameValueDescription
RemoveDocumentInformation0Removes the document information dictionary (/Info of the trailer, ISO 32000-2, 14.3.3).
RemoveXmpMetadata1Removes the XMP metadata stream of the document (/Metadata of the catalog, 14.3.2).
RemoveJavaScript2Removes JavaScript: the /JavaScript name tree, and the actions that run JavaScript (12.6.4.17).
RemoveEmbeddedFiles3Removes the embedded files of the document (the /EmbeddedFiles name tree and the associated files, 7.11.4).
RemoveFileAttachmentAnnotation4Removes a file attachment annotation (12.5.6.15).
RemovePageThumbnail5Removes the thumbnail image of a page (/Thumb, 12.3.4).
RemoveComment6Removes a markup annotation (a comment, 12.5.6.2) or a pop-up annotation.
RemoveOpenAction7Removes the action or destination run when the document is opened (/OpenAction of the catalog, 7.7.2).
RemoveXfa8Removes the XFA form (/XFA of the interactive form dictionary, 12.7.9).
RemoveFormFields9Removes the interactive form and the widget annotations of its fields (12.7).
RemoveBookmarks10Removes the outline (bookmarks, 12.3.3).
FlattenOptionalContent11Makes 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.
RemoveOptionalContentProperties12Removes the optional content properties of the document (/OCProperties of the catalog), once its content is flattened.
PruneUnusedResource13Removes a resource that no content of the pages uses (7.8.3).
PruneUnreachableObject14Removes an indirect object that cannot be reached from the trailer.
CompressStream15Compresses a stream that has no filter with FlateDecode (7.4.4).
DownsampleImage16Resamples an image whose resolution on the pages is above the target resolution.