PdfOptimizationAction Class

A change of a PdfOptimizationPlan. Set PdfOptimizationAction.IsEnabled to false to leave it out when the plan is applied.

public sealed class PdfOptimizationAction

Properties

NameDescription
DescriptionGets a description of the change, such as "Remove the unused font /F2 of the page 1".
IsEnabledGets or sets a value indicating whether the change is made when the plan is applied. The default is true.
KindGets the kind of change.
ObjectNumberGets the number of the indirect object the change concerns, or null when it is not an indirect object.
PageIndexGets the index of the page the change concerns, or null when it concerns the document.
ResourceNameGets the name of the resource the change concerns, for PdfOptimizationActionKind.PruneUnusedResource.

Gets a description of the change, such as "Remove the unused font /F2 of the page 1".

public string Description { get; }

Property value

string

Gets or sets a value indicating whether the change is made when the plan is applied. The default is true.

public bool IsEnabled { get; set; }

Property value

bool

Gets the kind of change.

public PdfOptimizationActionKind Kind { get; }

Gets the number of the indirect object the change concerns, or null when it is not an indirect object.

public int? ObjectNumber { get; }

Property value

int?

Gets the index of the page the change concerns, or null when it concerns the document.

public int? PageIndex { get; }

Property value

int?

Gets the name of the resource the change concerns, for PdfOptimizationActionKind.PruneUnusedResource.

public string? ResourceName { get; }

Property value

string?

Methods

NameDescription
ToString()Returns a string that represents the current object.

Returns a string that represents the current object.

public override string ToString()

Returns

string A string that represents the current object.