PDF Structure Tree Display and Validation
Notes
-
Select a tagged PDF file to upload. Drag and drop the PDF file, or browse using the Browse button.
- By default the generated XML will follow any specified Role
Mappings so the generated elements should use names from the standard PDF specifications.
If the Follow Role Map option is unchecked, the generated elements will use the names
and namespaces specified in any locally defined Structure Elements. The LaTeX-Project Structure Elements
are declared in the schema used here, but other namespaces result in XML files that will not validate
to the supplied schema.
- The default Auto schema automatically validates a document against
the PDF/UA-1 or PDF/UA-2 schemas extended with LaTeX Namespace elements.
You may instead select a specific schema, or None to suppress schema validation.
- By default, the generated XML will be displayed by your browser. If you select the Download
option, it will be downloaded as
document.xml to your default download area.
- The returned page will also provide a link to open the Structure Tree in PlantUML syntax at
PlantUML.com. This is using a display format produced by
the PDF Association. As it is mainly inteded for small fragments of
the tree to be included in documentation, this form offers several
options to truncate the display, starting at a specific element, or
eliding elements under various conditions.
Sources
This web version is intended for small illustrative examples only, and is provided as a free service.
We encourage use of a local installation to allow easier experimentation and to reduce load on this server.
The full sources are available under Open Source licences.
show-pdf-tags is a Lua script that just requires the texlua executable that is included in all modern TeX distributions. Source and documentation are on GitHub.
- The Relax NG Schema are developed in the same GitHub repository as the Lua script, GitHub.
- Any Relax NG validator can be used (RNV and Emacs/nxml are used in development). This web form uses RNV available from davidashen.net.
Copyright 2024–2026 LaTeX Project