Class
PdfProvenance
OfficeIMO.Pdf
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[]
- options OfficeIMO.Provenance.OfficeProvenanceOptions? = null
- readOptions OfficeIMO.Pdf.PdfLoadOptions? = null
Returns
OfficeProvenanceReportpublic static OfficeProvenanceReport InspectFile(string filePath, OfficeProvenanceOptions? options = null, PdfLoadOptions? readOptions = null) #Inspects a bounded PDF file.
Parameters
- filePath string
- options OfficeIMO.Provenance.OfficeProvenanceOptions? = null
- readOptions OfficeIMO.Pdf.PdfLoadOptions? = null
Returns
OfficeProvenanceReportpublic 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[]
- options OfficeIMO.Provenance.OfficeProvenanceRemovalOptions? = null
- readOptions OfficeIMO.Pdf.PdfLoadOptions? = null
Returns
OfficeProvenanceRemovalResultpublic 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
- outputPath string
- options OfficeIMO.Provenance.OfficeProvenanceRemovalOptions? = null
- readOptions OfficeIMO.Pdf.PdfLoadOptions? = null
Returns
OfficeProvenanceRemovalResult