mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-03 06:05:45 +00:00
Add `pdfstandard` metadata variable for specifying PDF standards (PDF/A, PDF/X, PDF/UA) in LaTeX output. Uses LaTeX's \DocumentMetadata command which requires LuaLaTeX. - PDF version requirements are automatically inferred, but can be explicitly overridden. - Automatic tagging for standards that require it (ua-1, ua-2, a-2a, a-3a). - Warning for unsupported standards - Documentation in MANUAL.txt (Variables for LaTeX, Accessible PDFs) Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
21 lines
412 B
Plaintext
21 lines
412 B
Plaintext
$--
|
|
$-- PDF standard support (PDF/A, PDF/UA, PDF/X)
|
|
$-- Requires LuaLaTeX and recent LaTeX (2023+)
|
|
$--
|
|
$if(pdfstandard)$
|
|
\DocumentMetadata{
|
|
$if(pdfstandard.version)$
|
|
pdfversion=$pdfstandard.version$,
|
|
$endif$
|
|
$if(pdfstandard.standards)$
|
|
pdfstandard={$for(pdfstandard.standards)$$it$$sep$,$endfor$},
|
|
$endif$
|
|
$if(pdfstandard.tagging)$
|
|
tagging=on,
|
|
$endif$
|
|
$if(lang)$
|
|
lang=$lang$,
|
|
$endif$
|
|
xmp=true}
|
|
$endif$
|