Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

HtmlProvenance

OfficeIMO.Html

Namespace
OfficeIMO.Html
Assembly
OfficeIMO.Html
Source revision
ac7e6e1bad8a with working tree changes
Modifiers
static

Inspects and selectively removes standards-defined provenance from HTML documents.

Inheritance

  • object
  • HtmlProvenance

Methods

public static OfficeProvenanceReport Inspect(string html, OfficeProvenanceOptions? options = null) #

Inspects embedded and external C2PA carriers plus supported embedded image data URIs.

Parameters

html string required
options OfficeIMO.Provenance.OfficeProvenanceOptions? = null optional

Returns

OfficeProvenanceReport
public static OfficeProvenanceReport InspectFile(string filePath, OfficeProvenanceOptions? options = null) #

Inspects a bounded HTML file without resolving external resources.

Parameters

filePath string required
options OfficeIMO.Provenance.OfficeProvenanceOptions? = null optional

Returns

OfficeProvenanceReport
public static OfficeProvenanceRemovalResult Remove(string html, OfficeProvenanceRemovalOptions? options = null) #

Removes selected HTML provenance and provenance in supported embedded image data URIs.

Parameters

html string required
options OfficeIMO.Provenance.OfficeProvenanceRemovalOptions? = null optional

Returns

OfficeProvenanceRemovalResult
public static OfficeProvenanceRemovalResult RemoveFile(string inputPath, string outputPath, OfficeProvenanceRemovalOptions? options = null) #

Removes selected provenance and atomically writes the resulting HTML file.

Parameters

inputPath string required
outputPath string required
options OfficeIMO.Provenance.OfficeProvenanceRemovalOptions? = null optional

Returns

OfficeProvenanceRemovalResult