Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfProvenance

OfficeIMO.Pdf

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

Inspects and selectively removes the standards-defined PDF C2PA associated-file carrier.

Inheritance

  • object
  • PdfProvenance

Methods

public static OfficeProvenanceReport Inspect(byte[] pdf, OfficeProvenanceOptions? options = null, PdfLoadOptions? readOptions = null) #

Inspects a bounded PDF for C2PA Manifest Store associated files.

Parameters

pdf byte[] required
options OfficeIMO.Provenance.OfficeProvenanceOptions? = null optional
readOptions OfficeIMO.Pdf.PdfLoadOptions? = null optional

Returns

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

Inspects a bounded PDF file.

Parameters

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

Returns

OfficeProvenanceReport
public static OfficeProvenanceRemovalResult Remove(byte[] pdf, OfficeProvenanceRemovalOptions? options = null, PdfLoadOptions? readOptions = null) #

Removes selected structurally valid C2PA associated files through the proven PDF attachment rewrite.

Parameters

pdf byte[] required
options OfficeIMO.Provenance.OfficeProvenanceRemovalOptions? = null optional
readOptions OfficeIMO.Pdf.PdfLoadOptions? = null optional

Returns

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

Removes selected provenance and atomically writes the resulting PDF.

Parameters

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

Returns

OfficeProvenanceRemovalResult