Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfConversionProofOptions

OfficeIMO.Pdf

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

Configures reusable proof checks for source-document to PDF conversion results.

Inheritance

  • object
  • PdfConversionProofOptions

Remarks

Native page coordinates use default user-space units: one unit is /UserUnit physical points (1/72 inch each), defaulting to 1. Local text/font and matrix values retain their native coordinate spaces. Explicit visual projections use their documented coordinates.

Usage

Explore 43 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.

Returned or exposed by 40

Accepted by parameters 3

Constructors

public PdfConversionProofOptions() #

Methods

public PdfConversionProofOptions AcceptWarningCodes(params string[] codes) #

Adds accepted warning codes and returns this options object for fluent setup.

Parameters

codes string[] required
public PdfConversionProofOptions RequireArtifactSha256(string sha256) #

Requires the generated artifact SHA-256 to match the supplied hash.

Parameters

sha256 string required
public PdfConversionProofOptions RequireAttachmentFileNames(params string[] fileNames) #

Adds required embedded or associated file names and returns this options object for fluent setup.

Parameters

fileNames string[] required
public PdfConversionProofOptions RequireCatalogLanguage(string language) #

Requires the generated PDF catalog language to match the supplied value.

Parameters

language string required
public PdfConversionProofOptions RequireCatalogPageLayout(PdfCatalogPageLayout pageLayout) #

Requires the generated PDF catalog page layout to match the supplied value.

Parameters

pageLayout OfficeIMO.Pdf.PdfCatalogPageLayout required
public PdfConversionProofOptions RequireCatalogPageMode(PdfCatalogPageMode pageMode) #

Requires the generated PDF catalog page mode to match the supplied value.

Parameters

pageMode OfficeIMO.Pdf.PdfCatalogPageMode required
public PdfConversionProofOptions RequireCatalogView(PdfCatalogPageMode? pageMode = null, PdfCatalogPageLayout? pageLayout = null) #

Requires the generated PDF catalog view hints to match the supplied values.

Parameters

pageMode OfficeIMO.Pdf.PdfCatalogPageMode? = null optional
pageLayout OfficeIMO.Pdf.PdfCatalogPageLayout? = null optional
public PdfConversionProofOptions RequireFormFieldNames(params string[] names) #

Adds required AcroForm field names and returns this options object for fluent setup.

Parameters

names string[] required
public PdfConversionProofOptions RequireLinkUris(params string[] uris) #

Adds required URI link targets and returns this options object for fluent setup.

Parameters

uris string[] required
public PdfConversionProofOptions RequireLogicalSignals(params string[] signals) #

Adds required logical readback signals and returns this options object for fluent setup.

Parameters

signals string[] required
public PdfConversionProofOptions RequireMetadata(string? title = null, string? author = null, string? subject = null, string? keywords = null) #

Requires selected PDF Info dictionary metadata values to match the generated PDF.

Parameters

title string? = null optional
author string? = null optional
subject string? = null optional
keywords string? = null optional
public PdfConversionProofOptions RequireNamedDestinationNames(params string[] names) #

Adds required named destinations and returns this options object for fluent setup.

Parameters

names string[] required
public PdfConversionProofOptions RequireNoErrors() #

Requires the conversion report to contain no error-severity warnings.

public PdfConversionProofOptions RequireNoUnexpectedWarningCodes() #

Requires every conversion warning code to be explicitly accepted.

public PdfConversionProofOptions RequireOpenAction(int pageNumber, PdfOpenActionDestinationMode? destinationMode = null) #

Requires the generated PDF catalog open action to target the supplied page and optional destination mode.

Parameters

pageNumber int required
destinationMode OfficeIMO.Pdf.PdfOpenActionDestinationMode? = null optional
public PdfConversionProofOptions RequireOptionalContentDefaultConfiguration(string? name = null, string? creator = null, string? baseState = null) #

Requires selected optional-content default configuration values to match the generated PDF.

Parameters

name string? = null optional
creator string? = null optional
baseState string? = null optional
public PdfConversionProofOptions RequireOptionalContentGroupCountAtLeast(int count) #

Requires at least the supplied number of optional-content/layer groups.

Parameters

count int required
public PdfConversionProofOptions RequireOptionalContentGroupNames(params string[] names) #

Adds required optional-content/layer group names and returns this options object for fluent setup.

Parameters

names string[] required
public PdfConversionProofOptions RequireOptionalContentHiddenGroupNames(params string[] names) #

Adds optional-content/layer group names that must initially be hidden.

Parameters

names string[] required
public PdfConversionProofOptions RequireOptionalContentLockedGroupNames(params string[] names) #

Adds optional-content/layer group names that must be locked in the default configuration.

Parameters

names string[] required
public PdfConversionProofOptions RequireOptionalContentOrderedGroupNames(params string[] names) #

Adds optional-content/layer group names that must appear in the default configuration order.

Parameters

names string[] required
public PdfConversionProofOptions RequireOptionalContentVisibleGroupNames(params string[] names) #

Adds optional-content/layer group names that must initially be visible.

Parameters

names string[] required
public PdfConversionProofOptions RequireOutlineTitles(params string[] titles) #

Adds required outline/bookmark titles and returns this options object for fluent setup.

Parameters

titles string[] required
public PdfConversionProofOptions RequireOutputConditionIdentifiers(params string[] identifiers) #

Adds required output condition identifiers and returns this options object for fluent setup.

Parameters

identifiers string[] required
public PdfConversionProofOptions RequireOutputIntentSubtypes(params string[] subtypes) #

Adds required output intent subtypes and returns this options object for fluent setup.

Parameters

subtypes string[] required
public PdfConversionProofOptions RequirePageCount(int pageCount) #

Requires the generated PDF to contain exactly the supplied number of pages.

Parameters

pageCount int required
public PdfConversionProofOptions RequirePageLabelRange(int startPageNumber, PdfPageNumberStyle style, int startNumber = 1, string? prefix = null) #

Adds a required page-label range and returns this options object for fluent setup.

Parameters

startPageNumber int required
style OfficeIMO.Pdf.PdfPageNumberStyle required
startNumber int = 1 optional
prefix string? = null optional
public PdfConversionProofOptions RequirePageLabelRanges(params PdfPageLabelRange[] ranges) #

Adds required page-label ranges and returns this options object for fluent setup.

Parameters

ranges OfficeIMO.Pdf.PdfPageLabelRange[] required
public PdfConversionProofOptions RequirePageSize(double width, double height, double tolerance = 0.01) #

Requires every generated PDF page to match the supplied size in page user-space units.

Parameters

width double required
height double required
tolerance double = 0.01 optional
public PdfConversionProofOptions RequireTaggedMarkedContentReferencesAtLeast(int count) #

Requires at least the supplied number of tagged-PDF marked-content references.

Parameters

count int required
public PdfConversionProofOptions RequireTaggedStructureElementCountAtLeast(int count) #

Requires at least the supplied number of tagged-PDF structure elements.

Parameters

count int required
public PdfConversionProofOptions RequireTaggedStructureTypes(params string[] structureTypes) #

Adds required tagged-PDF structure types and returns this options object for fluent setup.

Parameters

structureTypes string[] required
public PdfConversionProofOptions RequireTextMarkers(params string[] markers) #

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

Parameters

markers string[] required
RequireViewerPreference 2 overloads
public PdfConversionProofOptions RequireViewerPreference(string name, string value) #

Requires a generated PDF catalog viewer preference value.

Parameters

name string required
value string required
public PdfConversionProofOptions RequireViewerPreference(string name, bool value) #

Requires a generated PDF catalog viewer preference boolean value.

Parameters

name string required
value bool required
public PdfConversionProofOptions RequireWarningCodes(params string[] codes) #

Adds required warning codes and returns this options object for fluent setup.

Parameters

codes string[] required
public PdfConversionProofOptions RequireWarningSources(params string[] sources) #

Adds required warning sources and returns this options object for fluent setup.

Parameters

sources string[] required
public PdfConversionProofOptions RequireXmpMetadata(string? title = null, string? creator = null, string? description = null, string? producer = null, string? keywords = null) #

Requires selected XMP metadata values to match the generated PDF catalog metadata stream.

Parameters

title string? = null optional
creator string? = null optional
description string? = null optional
producer string? = null optional
keywords string? = null optional
public PdfConversionProofOptions RequireXmpPdfAIdentification(int part, string? conformance = null) #

Requires XMP PDF/A identification metadata to match the generated PDF.

Parameters

part int required
conformance string? = null optional
public PdfConversionProofOptions RequireXmpPdfUaIdentification(int part = 1) #

Requires XMP PDF/UA identification metadata to match the generated PDF.

Parameters

part int = 1 optional
public PdfConversionProofOptions RequireXmpSubjects(params string[] subjects) #

Adds required XMP subject values and returns this options object for fluent setup.

Parameters

subjects string[] required

Properties

public bool RequireReadablePdf { get; set; } #

True when the generated PDF must be readable by the OfficeIMO.Pdf reader.

public bool RequireNoErrorWarnings { get; set; } #

True when error-severity conversion warnings should fail the proof.

public bool RequireNoUnexpectedWarnings { get; set; } #

True when conversion warnings whose codes are not accepted should fail the proof.

public bool RequireLosslessConversion { get; set; } #

True when possible content loss in any conversion stage should fail the proof.

public bool IncludeArtifactHash { get; set; } #

True when the proof snapshot should include the generated artifact byte count and SHA-256.

public string? RequiredArtifactSha256 { get; set; } #

Expected SHA-256 hash for the generated artifact.

public int? RequiredPageCount { get; set; } #

Expected page count for the generated PDF artifact.

public double? RequiredPageWidth { get; set; } #

Expected page width in page user-space units for every generated page.

public double? RequiredPageHeight { get; set; } #

Expected page height in page user-space units for every generated page.

public double RequiredPageSizeTolerance { get; set; } #

Allowed point difference when comparing required page size.

public string? RequiredMetadataTitle { get; set; } #

Expected PDF Info dictionary title.

public string? RequiredMetadataAuthor { get; set; } #

Expected PDF Info dictionary author.

public string? RequiredMetadataSubject { get; set; } #

Expected PDF Info dictionary subject.

public string? RequiredMetadataKeywords { get; set; } #

Expected PDF Info dictionary keywords.

public string? RequiredCatalogLanguage { get; set; } #

Expected catalog language value.

public string? RequiredCatalogPageMode { get; set; } #

Expected catalog page mode PDF name.

public string? RequiredCatalogPageLayout { get; set; } #

Expected catalog page layout PDF name.

public int? RequiredOpenActionPageNumber { get; set; } #

Expected one-based document open-action target page number.

public PdfOpenActionDestinationMode? RequiredOpenActionDestinationMode { get; set; } #

Expected document open-action destination mode.

public string? RequiredOptionalContentDefaultConfigurationName { get; set; } #

Expected optional-content default configuration name.

public string? RequiredOptionalContentDefaultConfigurationCreator { get; set; } #

Expected optional-content default configuration creator.

public string? RequiredOptionalContentBaseState { get; set; } #

Expected optional-content default configuration base state.

public int? RequiredOptionalContentGroupCountAtLeast { get; set; } #

Minimum optional-content group count required in the generated PDF.

public string? RequiredXmpTitle { get; set; } #

Expected XMP Dublin Core title.

public string? RequiredXmpCreator { get; set; } #

Expected XMP Dublin Core creator.

public string? RequiredXmpDescription { get; set; } #

Expected XMP Dublin Core description.

public string? RequiredXmpProducer { get; set; } #

Expected XMP PDF producer metadata.

public string? RequiredXmpKeywords { get; set; } #

Expected XMP PDF keywords metadata.

public int? RequiredXmpPdfAPart { get; set; } #

Expected XMP PDF/A identification part.

public string? RequiredXmpPdfAConformance { get; set; } #

Expected XMP PDF/A identification conformance.

public int? RequiredXmpPdfUaPart { get; set; } #

Expected XMP PDF/UA identification part.

public int? RequiredTaggedStructureElementCountAtLeast { get; set; } #

Minimum tagged-PDF structure element count required in the generated PDF.

public int? RequiredTaggedMarkedContentReferencesAtLeast { get; set; } #

Minimum tagged-PDF marked-content reference count required in the generated PDF.

public IList<string> RequiredTextMarkers { get; } #

Text markers that must be extractable from the generated PDF.

public IList<string> RequiredLogicalSignals { get; } #

Logical readback signals that must be present in the generated PDF.

public IList<string> RequiredOutlineTitles { get; } #

PDF outline/bookmark titles that must be present in the generated PDF.

public IList<string> RequiredLinkUris { get; } #

URI link targets that must be present in the generated PDF.

public IList<string> RequiredFormFieldNames { get; } #

AcroForm field names that must be present in the generated PDF.

public IList<string> RequiredNamedDestinationNames { get; } #

Named destinations that must be present in the generated PDF catalog.

public IList<PdfPageLabelRange> RequiredPageLabelRanges { get; } #

Page-label ranges that must be present in the generated PDF catalog.

public IList<string> RequiredAttachmentFileNames { get; } #

Embedded or associated file names that must be present in the generated PDF catalog.

public IList<string> RequiredOutputIntentSubtypes { get; } #

Output intent subtypes that must be present in the generated PDF catalog.

public IList<string> RequiredOutputConditionIdentifiers { get; } #

Output condition identifiers that must be present in the generated PDF catalog.

public IList<string> RequiredOptionalContentGroupNames { get; } #

Optional-content/layer group names that must be present in the generated PDF catalog.

public IList<string> RequiredOptionalContentVisibleGroupNames { get; } #

Optional-content/layer group names that must initially be visible.

public IList<string> RequiredOptionalContentHiddenGroupNames { get; } #

Optional-content/layer group names that must initially be hidden.

public IList<string> RequiredOptionalContentLockedGroupNames { get; } #

Optional-content/layer group names that must be locked in the default configuration.

public IList<string> RequiredOptionalContentOrderedGroupNames { get; } #

Optional-content/layer group names that must appear in the default configuration order.

public IList<string> RequiredXmpSubjects { get; } #

XMP Dublin Core subjects that must be present in the generated PDF catalog metadata.

public IList<string> RequiredTaggedStructureTypes { get; } #

Tagged-PDF structure types that must be present in the generated PDF structure tree.

public IDictionary<string, string> RequiredViewerPreferences { get; } #

Viewer preference values that must be present in the generated PDF catalog.

public IList<string> RequiredWarningCodes { get; } #

Stable warning codes that must be present in the captured conversion report.

public IList<string> RequiredWarningSources { get; } #

Warning source labels that must be present in the captured conversion report.

public ISet<string> AcceptedWarningCodes { get; } #

Stable warning codes accepted by this proof contract when unexpected warnings are rejected.