Skip to main content

Diagnostics Showcase

A walk through the seven places template authors most often go wrong, each written correctly, in a document that switches its diagnostics on so any mistake would show on the page itself.

  • Diagnostics opted in. diagnostics.showInDocument is set to both, from warnings up: a mistake would surface as a marker directly below the affected element and as a row in an appendix on the last page.
  • The four modes explained. off (the default: issues dropped silently, no overhead), appendix, inline and both, listed on the first page.
  • Styles written correctly. A style property, a property value (textAlign set to center) and a style reference to a declared style, each with a note on what a misspelling would report.
  • Assets and scripts that resolve. An inline image the document can reach, and an Armenian line drawn by the built-in font coverage, with what a missing file or an uncovered script would say.
  • Svg and shortcodes. A textPath on valid path data, drawing its caption along the curve, and inline italic and colour runs.
  • What a clean render looks like. Because every case is correct, the page carries no marker and no appendix; the closing note describes the goldenrod ⚠ marker and the appendix columns a wrong case would bring.

Features used: PDF/A-2b conformance, SVG, images, Armenian text