80%

Reduction in per-document tagging cost

100 %

Consistent output – deterministic

1 Template

thousands of PDF/UA documents

JSON

Version-controlled · Git-friendly · portable

DEFINITION

What is a PDF layout template?

A PDFix layout template is a JSON file that defines the exact tag structure for a specific document type – an invoice, bank statement, insurance policy or annual report.

You build it once, then apply it to hundreds or thousands of identical-looking PDFs automatically.

The core idea

Unlike AI auto-tagging – where the model guesses the structure from training data – a layout template is your precise rules for how the tag tree should look for your organization’s documents.

Full control.

Full repeatability.

When your organization’s style guide changes, you update one template – not thousands of documents.

Templates are plain JSON – they diff well in Git, review well in pull requests, and version-control alongside your application code.

BENEFITS

Why use PDF layout templates?

TECHNICAL OVERVIEW

How PDF layout templates work

Each rule in the template has two parts: a query that selects elements (by font, size, position, text content, anchor) and an action that tags them. PDFix runs these rules against every page on every document in the batch.

Actions – what happens when matched

  • Assign heading levels H1–H6
  • Set Alt text on images and figures
  • Mark content as Artifact — headers, footers, page numbers
  • Build table structures — TH scope, header association, spans
  • Define reading order on multi-column pages
  • Create lists with correct numbering and nesting
  • Fix invalid tag-tree elements
  • Update font charcode mappings 
  • Set annotation flags

JSON example – heading rule + checkbox alt text

Checkbox rulechecked vs unchecked via object count

// Detects checked/unchecked graphic checkboxes by size and object count

{
"alt": "Checkbox ON",
"label": "label_no",
"query": {
"$and": [
{ "$0_width": { "$lte": "12" } },
{ "$0_height": { "$lte": "12" } },
{ "$0_object_num": { "$gt": "1" } }
],
"param": ["pde_image"]
},
"statement": "$if"
},
{
"alt": "Checkbox OFF",
"label": "label_no",
"query": {
"$and": [
{ "$0_width": { "$lte": "12" } },
{ "$0_height": { "$lte": "12" } },
{ "$0_object_num": { "$lte": "1" } }
],
"param": ["pde_image"]
},
"statement": "$i"
}
Heading rulebold 14pt textH2

// Selects elements by font + size → tags as H2
{
  "heading": "h2",
  "query": {
    "$and": [
      { "$0_font_name": {
          "$regex": "Bold$" } },
      { "$0_font_size": {
          "$gte": 14.0,
          "$lte": 14.5 } }
    ],
    "param": ["pde_text_line"]
  },
  "statement": "$if"
}












TWO WAYS TO USE TEMPLATES

Use templates in PDFix Desktop or PDFix SDK

Two paths, same templates. Build and test visually in PDFix Desktop – no coding required. Then apply programmatically via SDK or CLI for automated batch processing.

INDUSTRY USE CASES

Who uses PDF layout templates – and for what

Any organization generating thousands of near-identical PDFs daily is a template use case. The fixed layout that makes remediation difficult is exactly what makes templates so powerful.


For Windows, Linux and macOS

PDFix Desktop Lite Icon in the gray color, which illustrates the "Lite" features.

PDF Accessibility Checker

Free PDF accessibility validator. Instantly check compliance for WCAG 2.2, PDF/UA, and Section 508. Fast, cross-platform tool for document audits.

PDFix Desktop Pro Icon in blue color, which illustrates powerful PDF features built on the PDFix SDK

PDF Remediation Tool

AI-powered PDF accessibility remediation tool. Auto-tag complex PDFs, tables and automate PDF/UA fixes for high-volume workflows.

PDFix SDK Icon in the green color

PDF Accessibility API

Enterprise PDF accessibility SDK for integrating automated tagging, remediation, and validation into scalable document workflows across US and EU compliance requirements.


Disclaimer: PDFix provides tools and technology to assist in making your documents accessible, but we do not guarantee 100% document accessibility. Achieving full compliance requires human checks and intervention. Please note that PDFix is a technology provider, not a service provider. The responsibility for document compliance rests with the user.