From 70e6f51b96bbf5c9e8b82dcff38a1b70bf073125 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 17 Jan 2023 19:29:30 -0800 Subject: Add FAQ on producing pdf/a. See #3215. --- doc/faqs.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'doc') 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 -- cgit v1.2.3