HtmlPdfAccessibilityValidator
OfficeIMO.Html.Pdf
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
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
- pdfBytes byte[]
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
- cancellationToken System.Threading.CancellationToken = default
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[]