pdf-ua.mkiv /size: 1281 b    last modification: 2020-07-01 14:35
1\setupinteraction
2  [title=TITLE,
3    subtitle=SUBTITLE,
4    author=AUTHOR,
5    keyword={{KEYWORD1, KEYWORD2}, KEYWORD3}]
6
7\setupbackend
8  [format={pdf/ua-1},
9%    profile=srgb.icc, % can't validate PDF/A-3, so this only blows up the PDF
10%    intent={ISO Coated v2 300\letterpercent\space (ECI)},
11    level=0]
12
13\setuptagging[state=start] % should be set automatically, if 'tagging = true'
14
15\setuplanguage[en]
16
17% DisplayDocTitle key is not set to true
18%
19% [from PDFUA-Reference-09_(English-invoice).pdf]
20% 129 0 obj
21% <</Type/Catalog/Pages 1 0 R/ViewerPreferences<</DisplayDocTitle true>>/PageMode/UseOutlines/Outlines 43 0 R/Lang(en)/StructTreeRoot 2 0 R/MarkInfo<</Marked true/Suspects false>>/OutputIntents[ 128 0 R]/Metadata 127 0 R>>
22% endobj
23% this may interfer with other ViewerPreferences settings?
24
25\startluacode
26    lpdf.addtocatalog("ViewerPreferences",lpdf.dictionary{DisplayDocTitle = true})
27\stopluacode
28
29\def\tag#1{\quote{\tt#1}}
30
31\starttext
32  Warning: This document may contain errors and traces of hazelnuts.
33
34  \blank[big]
35
36  \startMPcode
37    fill fullcircle scaled 3cm withcolor red;
38  \stopMPcode
39
40  \blank[big]
41
42  The \quote{Matterhorn Protocol} gives a condensed overview of the possible failure conditions
43  and the used structure types (p.4).\par
44
45\stoptext
46