PdfOptimizationPlan Class
The changes PdfOptimizer plans for a document. Inspect the PdfOptimizationPlan.Actions, disable the ones to leave out (PdfOptimizationAction.IsEnabled), and apply the plan with PdfOptimizer.Apply.
public sealed class PdfOptimizationPlanProperties
| Name | Description |
|---|---|
| Actions | Gets the changes, in the order they are made. |
| Document | Gets the document the plan was created for. |
| HasSignatures | Gets a value indicating whether the document has signed signature fields. |
| InvalidatesSignatures | Gets a value indicating whether applying the plan invalidates signatures: the document is signed, and an action is enabled. |
| Options | Gets the options the plan was created with. |
Actions
PdfOptimizationPlan.csGets the changes, in the order they are made.
public IReadOnlyList<PdfOptimizationAction> Actions { get; }Property value
Document
PdfOptimizationPlan.csHasSignatures
PdfOptimizationPlan.csInvalidatesSignatures
PdfOptimizationPlan.csOptions
PdfOptimizationPlan.csGets the options the plan was created with.
public PdfOptimizationOptions Options { get; }Property value
Methods
| Name | Description |
|---|---|
| ToJson(bool) | Writes the plan as JSON: hasSignatures, invalidatesSignatures and the actions, with their kind, description, page index, object number, resource name and state. |