diff options
| author | John MacFarlane <jgm@berkeley.edu> | 2023-01-17 19:29:30 -0800 |
|---|---|---|
| committer | John MacFarlane <jgm@berkeley.edu> | 2023-01-17 19:29:30 -0800 |
| commit | 70e6f51b96bbf5c9e8b82dcff38a1b70bf073125 (patch) | |
| tree | f159e7186406a89126047964dc0441f7e130ae31 /doc | |
| parent | 45c915f3d879a97f4a14696df80b64d0522b5e18 (diff) | |
Add FAQ on producing pdf/a.
See #3215.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/faqs.md | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/doc/faqs.md b/doc/faqs.md index 49c973437..dc78d10ae 100644 --- a/doc/faqs.md +++ b/doc/faqs.md @@ -161,6 +161,37 @@ of the citations by specifying an appropriate CSL bibliography style using `--csl` (see [the manual](https://pandoc.org/MANUAL.html#specifying-a-citation-style)). +### How can I produce PDF/A with pandoc? + +The simplest approach is via ConTeXt: + +``` +pandoc --pdf-engine=context -V pdfa +``` + +Alternatively, `--pdf-engine=pdflatex` can be used with +the following in `header-includes` in metadata (or included from +a file using `--include-in-header`): + +``` +\usepackage[a-2u,mathxmp]{pdfx} +\usepackage[pdfa]{hyperref} +``` + +Or `--pdf-engine=lualatex` can be used with the following: + +``` +\usepackage{hyperxmp} +\hypersetup{pdfapart=3,pdfaconformance=B} +\immediate\pdfobj stream attr{/N 3} file{sRGB.icc} +\pdfcatalog{/OutputIntents [<< +/Type /OutputIntent /S /GTS_PDFA1 +/DestOutputProfile \the\pdflastobj\space 0 R +/OutputConditionIdentifier (sRGB) /Info (sRGB) +>>]} +``` + + ### Pandoc adds column widths to pipe tables when any line is wider than the setting for `--columns`. How can I prevent this? Save this filter as `nowidths.lua` and then pass `--lua-filter |
