Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfRewritePreservationOptions

OfficeIMO.Pdf

Namespace
OfficeIMO.Pdf
Assembly
OfficeIMO.Pdf
Source revision
be6c300e4ab1 with working tree changes
Modifiers
sealed

Configures the generic preservation checks used after PDF rewrite and manipulation operations.

Inheritance

  • object
  • PdfRewritePreservationOptions

Usage

Explore 8 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 4

Constructors

public PdfRewritePreservationOptions() #

Methods

public PdfRewritePreservationOptions AllowMetadataChanges(params string[] fieldNames) #

Allows specific metadata fields to change and returns this options object for fluent setup.

Parameters

fieldNames string[] required
public PdfRewritePreservationOptions Clone() #

Copies these settings with independent collections and original/rewritten read policies.

public PdfRewritePreservationOptions RequireTextMarkers(params string[] markers) #

Adds required text markers and returns this options object for fluent setup.

Parameters

markers string[] required

Properties

public PdfLoadOptions? OriginalReadOptions { get; set; } #

Read options used to inspect the original document, including its password when encrypted.

public PdfLoadOptions? RewrittenReadOptions { get; set; } #

Read options used to inspect the rewritten document, including its new password when encrypted.

public bool PreservePageCount { get; set; } #

True when the rewritten PDF must keep the original page count.

public bool PreservePageGeometry { get; set; } #

True when each unchanged page must keep width, height, and rotation.

public bool PreserveMetadata { get; set; } #

True when Info dictionary metadata fields must be preserved except for explicitly allowed fields.

public bool PreserveOutlines { get; set; } #

True when outline/bookmark count must not be lost.

public bool PreserveNamedDestinations { get; set; } #

True when named destination count must not be lost.

public bool PreservePageLabels { get; set; } #

True when page-label count and label ranges must not be lost.

public bool PreserveLinkAnnotations { get; set; } #

True when simple link annotation count must not be lost.

public bool PreserveAnnotations { get; set; } #

True when generic annotation count must not be lost.

public ISet<string> ExcludedAnnotationSubtypes { get; } #

Annotation subtypes excluded from generic annotation-count preservation.

public ISet<string> ExcludedLinkAnnotationUris { get; } #

URI targets excluded from simple link-annotation preservation.

public ISet<string> ExcludedActionUris { get; } #

URI action targets excluded from catalog and page-action preservation.

public bool PreserveForms { get; set; } #

True when simple AcroForm field count and form markers must not be lost.

public bool PreserveEmbeddedFiles { get; set; } #

True when embedded file/associated file count must not be lost.

public bool PreserveXmpMetadata { get; set; } #

True when XMP metadata markers must not be lost.

public bool PreserveOutputIntents { get; set; } #

True when output intent count must not be lost.

public bool PreserveOptionalContent { get; set; } #

True when optional content/layer markers must not be lost.

public bool PreserveTaggedContent { get; set; } #

True when tagged PDF structure markers and readable structure metadata must not be lost.

public bool PreserveCatalogViewSettings { get; set; } #

True when catalog page mode, layout, language, and viewer preferences must not be lost.

public bool PreserveOpenAction { get; set; } #

True when document open-action destination metadata must not be changed.

public bool PreserveCatalogActions { get; set; } #

True when catalog-level active action metadata must not be changed.

public bool PreservePageActions { get; set; } #

True when page-level additional action metadata must not be changed.

public bool PreserveFormWidgetActions { get; set; } #

True when retained AcroForm field and widget actions must not be lost or changed.

public ISet<string> PreservedActionTypes { get; } #

Action types compared when action preservation is enabled. An empty set compares every action type.

public bool PreserveViewerPreferences { get; set; } #

True when viewer preference values must not be changed.

public bool PreserveDocumentVersionState { get; set; } #

True when header, catalog, and effective PDF version markers must not be changed.

public bool PreserveRevisionStructure { get; set; } #

True when xref-stream, object-stream, previous-revision, and incremental-update markers must not be lost.

public bool PreserveSecurityState { get; set; } #

True when security, signature, DSS/VRI, DocMDP, and usage-rights markers must not be lost or changed.

public IList<string> RequiredTextMarkers { get; } #

Text markers that must remain extractable from the rewritten PDF.

public ISet<string> AllowedMetadataChanges { get; } #

Metadata fields that the rewrite is allowed to change. Supported names: Title, Author, Subject, Keywords.