Table of Contents

Class RemediationDiff

Namespace
PDiffy
Assembly
PDiffy.dll

What changed between a PDF and its remediated version: the changes to its content, which a remediation isn't expected to make, and every change. It doesn't say whether the remediation is right. For that, compare the checks sections (Check(PdfCheckSet)) and have an accessibility specialist review the tags.

public sealed class RemediationDiff
Inheritance
RemediationDiff
Inherited Members

Properties

AllChanges

Every change, as Compare(PdfUaDocument, PdfUaDocument, Action<PdfSnapshotOptions>?) finds them. With Check(PdfCheckSet), its new problems in the checks section are the ones the remediation introduced, and a problem the original already had and still has isn't a change.

public DocumentDiff AllChanges { get; }

Property Value

DocumentDiff

ContentChanges

Changes to what the pages show and what the document does: text, images, paths, page sizes and boxes, where links go, comments, and form fields and their values. A remediation isn't expected to make any. Changes to tags, alt text, artifacts, tab order, accessible names, metadata, bookmarks, fonts and settings aren't listed here, and neither are text runs split by new tags or content that only moved in the content stream.

public DocumentDiff ContentChanges { get; }

Property Value

DocumentDiff

Methods

Compare(PdfUaDocument, PdfUaDocument, Action<PdfSnapshotOptions>?)

Compares a PDF with its remediated version.

public static RemediationDiff Compare(PdfUaDocument original, PdfUaDocument remediated, Action<PdfSnapshotOptions>? configure = null)

Parameters

original PdfUaDocument

The PDF before remediation.

remediated PdfUaDocument

The same PDF after remediation.

configure Action<PdfSnapshotOptions>

What to leave out or scrub from both, as for ToSnapshot(Action<PdfSnapshotOptions>?).

Returns

RemediationDiff