Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

HtmlPdfAccessibilityValidator

OfficeIMO.Html.Pdf

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

Validates the deterministic tagged-PDF structure emitted by the direct HTML renderer. This is a bounded structural contract, not a claim of full PDF/UA certification.

Inheritance

  • object
  • HtmlPdfAccessibilityValidator

Methods

Validate 3 overloads
public static HtmlPdfAccessibilityValidationResult Validate(HtmlConversionDocument sourceDocument, byte[] pdfBytes) #

Validates both the bounded source accessibility contract and the generated PDF structure. Use this overload when source-only omissions, such as an image without an accessible name, must remain diagnosable after conversion.

Parameters

sourceDocument OfficeIMO.Html.HtmlConversionDocument required
pdfBytes byte[] required
public static HtmlPdfAccessibilityValidationResult Validate(HtmlPdfRenderRequestResult rendered, CancellationToken cancellationToken = default) #

Validates the PDF and source image-name evidence retained by its render operation. Uses the effective media, viewport, caller and resolved stylesheets without fetching resources again.

Parameters

rendered OfficeIMO.Html.Pdf.HtmlPdfRenderRequestResult required
cancellationToken System.Threading.CancellationToken = default optional
public static HtmlPdfAccessibilityValidationResult Validate(byte[] pdfBytes) #

Validates language, tag roots, parent-tree evidence, hierarchy links, marked content, tables, lists, links, and figure alternate text.

Parameters

pdfBytes byte[] required