Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

PdfConversionProofOptions

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

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

Inheritance

  • Object
  • PdfConversionProofOptions

Usage

Explore 44 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 41

Accepted by parameters 3

Constructors

public PdfConversionProofOptions() #

Methods

public PdfConversionProofOptions AcceptWarningCodes(params String[] codes) #
Returns: PdfConversionProofOptions

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

Parameters

codes System.String[] requiredposition: 0
public PdfConversionProofOptions RequireArtifactSha256(String sha256) #
Returns: PdfConversionProofOptions

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

Parameters

sha256 System.String requiredposition: 0
public PdfConversionProofOptions RequireAttachmentFileNames(params String[] fileNames) #
Returns: PdfConversionProofOptions

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

Parameters

fileNames System.String[] requiredposition: 0
public PdfConversionProofOptions RequireCatalogLanguage(String language) #
Returns: PdfConversionProofOptions

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

Parameters

language System.String requiredposition: 0
public PdfConversionProofOptions RequireCatalogPageLayout(PdfCatalogPageLayout pageLayout) #
Returns: PdfConversionProofOptions

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

Parameters

pageLayout OfficeIMO.Pdf.PdfCatalogPageLayout requiredposition: 0
public PdfConversionProofOptions RequireCatalogPageMode(PdfCatalogPageMode pageMode) #
Returns: PdfConversionProofOptions

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

Parameters

pageMode OfficeIMO.Pdf.PdfCatalogPageMode requiredposition: 0
public PdfConversionProofOptions RequireCatalogView(PdfCatalogPageMode? pageMode = null, PdfCatalogPageLayout? pageLayout = null) #
Returns: PdfConversionProofOptions

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

Parameters

pageMode OfficeIMO.Pdf.PdfCatalogPageMode? = null optionalposition: 0
pageLayout OfficeIMO.Pdf.PdfCatalogPageLayout? = null optionalposition: 1
public PdfConversionProofOptions RequireFormFieldNames(params String[] names) #
Returns: PdfConversionProofOptions

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

Parameters

names System.String[] requiredposition: 0
public PdfConversionProofOptions RequireLinkUris(params String[] uris) #
Returns: PdfConversionProofOptions

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

Parameters

uris System.String[] requiredposition: 0
public PdfConversionProofOptions RequireLogicalSignals(params String[] signals) #
Returns: PdfConversionProofOptions

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

Parameters

signals System.String[] requiredposition: 0
public PdfConversionProofOptions RequireMetadata(String? title = null, String? author = null, String? subject = null, String? keywords = null) #
Returns: PdfConversionProofOptions

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

Parameters

title System.String? = null optionalposition: 0
author System.String? = null optionalposition: 1
subject System.String? = null optionalposition: 2
keywords System.String? = null optionalposition: 3
public PdfConversionProofOptions RequireNamedDestinationNames(params String[] names) #
Returns: PdfConversionProofOptions

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

Parameters

names System.String[] requiredposition: 0
public PdfConversionProofOptions RequireNoErrors() #
Returns: PdfConversionProofOptions

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

public PdfConversionProofOptions RequireNoLoss() #
Returns: PdfConversionProofOptions

Requires every source and PDF conversion stage to report no possible content loss.

public PdfConversionProofOptions RequireNoUnexpectedWarningCodes() #
Returns: PdfConversionProofOptions

Requires every conversion warning code to be explicitly accepted.

public PdfConversionProofOptions RequireOpenAction(Int32 pageNumber, PdfOpenActionDestinationMode? destinationMode = null) #
Returns: PdfConversionProofOptions

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

Parameters

pageNumber System.Int32 requiredposition: 0
destinationMode OfficeIMO.Pdf.PdfOpenActionDestinationMode? = null optionalposition: 1
public PdfConversionProofOptions RequireOptionalContentDefaultConfiguration(String? name = null, String? creator = null, String? baseState = null) #
Returns: PdfConversionProofOptions

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

Parameters

name System.String? = null optionalposition: 0
creator System.String? = null optionalposition: 1
baseState System.String? = null optionalposition: 2
public PdfConversionProofOptions RequireOptionalContentGroupCountAtLeast(Int32 count) #
Returns: PdfConversionProofOptions

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

Parameters

count System.Int32 requiredposition: 0
public PdfConversionProofOptions RequireOptionalContentGroupNames(params String[] names) #
Returns: PdfConversionProofOptions

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

Parameters

names System.String[] requiredposition: 0
public PdfConversionProofOptions RequireOptionalContentHiddenGroupNames(params String[] names) #
Returns: PdfConversionProofOptions

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

Parameters

names System.String[] requiredposition: 0
public PdfConversionProofOptions RequireOptionalContentLockedGroupNames(params String[] names) #
Returns: PdfConversionProofOptions

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

Parameters

names System.String[] requiredposition: 0
public PdfConversionProofOptions RequireOptionalContentOrderedGroupNames(params String[] names) #
Returns: PdfConversionProofOptions

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

Parameters

names System.String[] requiredposition: 0
public PdfConversionProofOptions RequireOptionalContentVisibleGroupNames(params String[] names) #
Returns: PdfConversionProofOptions

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

Parameters

names System.String[] requiredposition: 0
public PdfConversionProofOptions RequireOutlineTitles(params String[] titles) #
Returns: PdfConversionProofOptions

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

Parameters

titles System.String[] requiredposition: 0
public PdfConversionProofOptions RequireOutputConditionIdentifiers(params String[] identifiers) #
Returns: PdfConversionProofOptions

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

Parameters

identifiers System.String[] requiredposition: 0
public PdfConversionProofOptions RequireOutputIntentSubtypes(params String[] subtypes) #
Returns: PdfConversionProofOptions

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

Parameters

subtypes System.String[] requiredposition: 0
public PdfConversionProofOptions RequirePageCount(Int32 pageCount) #
Returns: PdfConversionProofOptions

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

Parameters

pageCount System.Int32 requiredposition: 0
public PdfConversionProofOptions RequirePageLabelRange(Int32 startPageNumber, PdfPageNumberStyle style, Int32 startNumber = 1, String? prefix = null) #
Returns: PdfConversionProofOptions

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

Parameters

startPageNumber System.Int32 requiredposition: 0
style OfficeIMO.Pdf.PdfPageNumberStyle requiredposition: 1
startNumber System.Int32 = 1 optionalposition: 2
prefix System.String? = null optionalposition: 3
public PdfConversionProofOptions RequirePageLabelRanges(params PdfPageLabelRange[] ranges) #
Returns: PdfConversionProofOptions

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

Parameters

ranges OfficeIMO.Pdf.PdfPageLabelRange[] requiredposition: 0
public PdfConversionProofOptions RequirePageSize(Double width, Double height, Double tolerance = 0.01) #
Returns: PdfConversionProofOptions

Requires every generated PDF page to match the supplied size in PDF points.

Parameters

width System.Double requiredposition: 0
height System.Double requiredposition: 1
tolerance System.Double = 0.01 optionalposition: 2
public PdfConversionProofOptions RequireTaggedMarkedContentReferencesAtLeast(Int32 count) #
Returns: PdfConversionProofOptions

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

Parameters

count System.Int32 requiredposition: 0
public PdfConversionProofOptions RequireTaggedStructureElementCountAtLeast(Int32 count) #
Returns: PdfConversionProofOptions

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

Parameters

count System.Int32 requiredposition: 0
public PdfConversionProofOptions RequireTaggedStructureTypes(params String[] structureTypes) #
Returns: PdfConversionProofOptions

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

Parameters

structureTypes System.String[] requiredposition: 0
public PdfConversionProofOptions RequireTextMarkers(params String[] markers) #
Returns: PdfConversionProofOptions

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

Parameters

markers System.String[] requiredposition: 0
RequireViewerPreference 2 overloads
public PdfConversionProofOptions RequireViewerPreference(String name, String value) #
Returns: PdfConversionProofOptions

Requires a generated PDF catalog viewer preference value.

Parameters

name System.String requiredposition: 0
value System.String requiredposition: 1
public PdfConversionProofOptions RequireViewerPreference(String name, Boolean value) #
Returns: PdfConversionProofOptions

Requires a generated PDF catalog viewer preference boolean value.

Parameters

name System.String requiredposition: 0
value System.Boolean requiredposition: 1
public PdfConversionProofOptions RequireWarningCodes(params String[] codes) #
Returns: PdfConversionProofOptions

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

Parameters

codes System.String[] requiredposition: 0
public PdfConversionProofOptions RequireWarningSources(params String[] sources) #
Returns: PdfConversionProofOptions

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

Parameters

sources System.String[] requiredposition: 0
public PdfConversionProofOptions RequireXmpMetadata(String? title = null, String? creator = null, String? description = null, String? producer = null, String? keywords = null) #
Returns: PdfConversionProofOptions

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

Parameters

title System.String? = null optionalposition: 0
creator System.String? = null optionalposition: 1
description System.String? = null optionalposition: 2
producer System.String? = null optionalposition: 3
keywords System.String? = null optionalposition: 4
public PdfConversionProofOptions RequireXmpPdfAIdentification(Int32 part, String? conformance = null) #
Returns: PdfConversionProofOptions

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

Parameters

part System.Int32 requiredposition: 0
conformance System.String? = null optionalposition: 1
public PdfConversionProofOptions RequireXmpPdfUaIdentification(Int32 part = 1) #
Returns: PdfConversionProofOptions

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

Parameters

part System.Int32 = 1 optionalposition: 0
public PdfConversionProofOptions RequireXmpSubjects(params String[] subjects) #
Returns: PdfConversionProofOptions

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

Parameters

subjects System.String[] requiredposition: 0

Properties

public Boolean RequireReadablePdf { get; set; } #

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

public Boolean RequireNoErrorWarnings { get; set; } #

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

public Boolean RequireNoUnexpectedWarnings { get; set; } #

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

public Boolean RequireLosslessConversion { get; set; } #

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

public Boolean 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 Int32? RequiredPageCount { get; set; } #

Expected page count for the generated PDF artifact.

public Double? RequiredPageWidth { get; set; } #

Expected page width in PDF points for every generated page.

public Double? RequiredPageHeight { get; set; } #

Expected page height in PDF points 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 Int32? 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 Int32? 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 Int32? RequiredXmpPdfAPart { get; set; } #

Expected XMP PDF/A identification part.

public String? RequiredXmpPdfAConformance { get; set; } #

Expected XMP PDF/A identification conformance.

public Int32? RequiredXmpPdfUaPart { get; set; } #

Expected XMP PDF/UA identification part.

public Int32? RequiredTaggedStructureElementCountAtLeast { get; set; } #

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

public Int32? 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.