interplane.Get Omega
Read in your language

omega-pdf

Omega PDF: read and write PDF files in Omega

Brought by drakestapleton

branch main Branches Tags History

omega-pdf / tests / cases.txt

425 lines · 30388 bytes Raw Blame History
1# omega-pdf gate cases (tests/gate.om). One case per line, fields separated by single spaces:
2# ID EXIT STDIN EXPECT CMD ARGS... run build/gate/opdf CMD ARGS ("-" STDIN is /dev/null).
3# ID EXIT STDIN EXPECT exec PROGRAM ARGS... run an installed oracle program instead (absolute path).
4# EXPECT: "-" no stdout check; "=" stdout equals the previous case's stdout (build/gate/prev);
5# "i:FILE" info against pdfinfo -rawdates (version, pages, encrypted, Title, Author, Producer, CreationDate;
6# a value printed with a \xHH escape is not compared, counted as info-strings-not-compared);
7# "p:FILE" pages against pdfinfo -box (each MediaBox number within 0.01, Rotate modulo 360, page count);
8# "t:FILE" text against pdftotext -raw after the stated normalisation (every run of ASCII whitespace,
9# including LF, CR and FF, becomes one space; leading and trailing whitespace removed);
10# "g:N" the checker (Ghostscript nullpage) printed exactly N "Page " lines; any other EXPECT: exact bytes.
11# Every nonzero exit must leave exactly one stderr line "opdf: ..." or "ozip: ..."; exit 0 an empty stderr.
12# rob ID KIND FILE CMD robustness: FILE cut at 64 points and changed at 256 single bytes, opdf CMD each.
13# Oracles (test only, never shipped): pdfinfo and pdftotext 24.02.0 (poppler-utils), Ghostscript 10.02.1;
14# their recorded outputs are in corpus/expect (commands in corpus/ORACLE.txt and corpus/SOURCES.txt).
15#
16# ---- info, pages and text against the oracles: every valid corpus file ----
17i-encodings-notounicode 0 - i:corpus/expect/encodings-notounicode.pdfinfo info corpus/pdf/encodings-notounicode.pdf
18p-encodings-notounicode 0 - p:corpus/expect/encodings-notounicode.box pages corpus/pdf/encodings-notounicode.pdf
19t-encodings-notounicode 0 - t:corpus/expect/encodings-notounicode.txt text corpus/pdf/encodings-notounicode.pdf
20i-encodings 0 - i:corpus/expect/encodings.pdfinfo info corpus/pdf/encodings.pdf
21p-encodings 0 - p:corpus/expect/encodings.box pages corpus/pdf/encodings.pdf
22t-encodings 0 - t:corpus/expect/encodings.txt text corpus/pdf/encodings.pdf
23i-layout 0 - i:corpus/expect/layout.pdfinfo info corpus/pdf/layout.pdf
24p-layout 0 - p:corpus/expect/layout.box pages corpus/pdf/layout.pdf
25t-layout 0 - t:corpus/expect/layout.txt text corpus/pdf/layout.pdf
26i-prose 0 - i:corpus/expect/prose.pdfinfo info corpus/pdf/prose.pdf
27p-prose 0 - p:corpus/expect/prose.box pages corpus/pdf/prose.pdf
28t-prose 0 - t:corpus/expect/prose.txt text corpus/pdf/prose.pdf
29i-a85 0 - i:corpus/expect/a85.pdfinfo info corpus/gen/a85.pdf
30p-a85 0 - p:corpus/expect/a85.box pages corpus/gen/a85.pdf
31t-a85 0 - t:corpus/expect/a85.txt text corpus/gen/a85.pdf
32i-a85flate 0 - i:corpus/expect/a85flate.pdfinfo info corpus/gen/a85flate.pdf
33p-a85flate 0 - p:corpus/expect/a85flate.box pages corpus/gen/a85flate.pdf
34t-a85flate 0 - t:corpus/expect/a85flate.txt text corpus/gen/a85flate.pdf
35i-ahx 0 - i:corpus/expect/ahx.pdfinfo info corpus/gen/ahx.pdf
36p-ahx 0 - p:corpus/expect/ahx.box pages corpus/gen/ahx.pdf
37t-ahx 0 - t:corpus/expect/ahx.txt text corpus/gen/ahx.pdf
38i-carray 0 - i:corpus/expect/carray.pdfinfo info corpus/gen/carray.pdf
39p-carray 0 - p:corpus/expect/carray.box pages corpus/gen/carray.pdf
40t-carray 0 - t:corpus/expect/carray.txt text corpus/gen/carray.pdf
41i-differences 0 - i:corpus/expect/differences.pdfinfo info corpus/gen/differences.pdf
42p-differences 0 - p:corpus/expect/differences.box pages corpus/gen/differences.pdf
43t-differences 0 - t:corpus/expect/differences.txt text corpus/gen/differences.pdf
44i-hybrid 0 - i:corpus/expect/hybrid.pdfinfo info corpus/gen/hybrid.pdf
45p-hybrid 0 - p:corpus/expect/hybrid.box pages corpus/gen/hybrid.pdf
46t-hybrid 0 - t:corpus/expect/hybrid.txt text corpus/gen/hybrid.pdf
47i-image 0 - i:corpus/expect/image.pdfinfo info corpus/gen/image.pdf
48p-image 0 - p:corpus/expect/image.box pages corpus/gen/image.pdf
49t-image 0 - t:corpus/expect/image.txt text corpus/gen/image.pdf
50i-incr 0 - i:corpus/expect/incr.pdfinfo info corpus/gen/incr.pdf
51p-incr 0 - p:corpus/expect/incr.box pages corpus/gen/incr.pdf
52t-incr 0 - t:corpus/expect/incr.txt text corpus/gen/incr.pdf
53i-lenref 0 - i:corpus/expect/lenref.pdfinfo info corpus/gen/lenref.pdf
54p-lenref 0 - p:corpus/expect/lenref.box pages corpus/gen/lenref.pdf
55t-lenref 0 - t:corpus/expect/lenref.txt text corpus/gen/lenref.pdf
56i-lzw 0 - i:corpus/expect/lzw.pdfinfo info corpus/gen/lzw.pdf
57p-lzw 0 - p:corpus/expect/lzw.box pages corpus/gen/lzw.pdf
58t-lzw 62 - - text corpus/gen/lzw.pdf
59i-macroman 0 - i:corpus/expect/macroman.pdfinfo info corpus/gen/macroman.pdf
60p-macroman 0 - p:corpus/expect/macroman.box pages corpus/gen/macroman.pdf
61t-macroman 0 - t:corpus/expect/macroman.txt text corpus/gen/macroman.pdf
62i-objstm 0 - i:corpus/expect/objstm.pdfinfo info corpus/gen/objstm.pdf
63p-objstm 0 - p:corpus/expect/objstm.box pages corpus/gen/objstm.pdf
64t-objstm 0 - t:corpus/expect/objstm.txt text corpus/gen/objstm.pdf
65i-standard 0 - i:corpus/expect/standard.pdfinfo info corpus/gen/standard.pdf
66p-standard 0 - p:corpus/expect/standard.box pages corpus/gen/standard.pdf
67t-standard 0 - t:corpus/expect/standard.txt text corpus/gen/standard.pdf
68i-textops 0 - i:corpus/expect/textops.pdfinfo info corpus/gen/textops.pdf
69p-textops 0 - p:corpus/expect/textops.box pages corpus/gen/textops.pdf
70t-textops 0 - t:corpus/expect/textops.txt text corpus/gen/textops.pdf
71i-tounicode 0 - i:corpus/expect/tounicode.pdfinfo info corpus/gen/tounicode.pdf
72p-tounicode 0 - p:corpus/expect/tounicode.box pages corpus/gen/tounicode.pdf
73t-tounicode 0 - t:corpus/expect/tounicode.txt text corpus/gen/tounicode.pdf
74i-type0 0 - i:corpus/expect/type0.pdfinfo info corpus/gen/type0.pdf
75p-type0 0 - p:corpus/expect/type0.box pages corpus/gen/type0.pdf
76t-type0 0 - t:corpus/expect/type0.txt text corpus/gen/type0.pdf
77i-winansi 0 - i:corpus/expect/winansi.pdfinfo info corpus/gen/winansi.pdf
78p-winansi 0 - p:corpus/expect/winansi.box pages corpus/gen/winansi.pdf
79t-winansi 0 - t:corpus/expect/winansi.txt text corpus/gen/winansi.pdf
80i-xrefstm 0 - i:corpus/expect/xrefstm.pdfinfo info corpus/gen/xrefstm.pdf
81p-xrefstm 0 - p:corpus/expect/xrefstm.box pages corpus/gen/xrefstm.pdf
82t-xrefstm 0 - t:corpus/expect/xrefstm.txt text corpus/gen/xrefstm.pdf
83i-inherit 0 - i:corpus/expect/inherit.pdfinfo info corpus/gen/inherit.pdf
84p-inherit 0 - p:corpus/expect/inherit.box pages corpus/gen/inherit.pdf
85t-inherit 0 - t:corpus/expect/inherit.txt text corpus/gen/inherit.pdf
86#
87i-omegese 0 - i:corpus/expect/omegese.pdfinfo info corpus/pdf/omegese.pdf
88p-omegese 0 - p:corpus/expect/omegese.box pages corpus/pdf/omegese.pdf
89t-omegese 0 - t:corpus/expect/omegese.txt text corpus/pdf/omegese.pdf
90s-omegese-a 0 - - split corpus/pdf/omegese.pdf 1 10 build/gate/omegese-a.pdf
91s-omegese-b 0 - - split corpus/pdf/omegese.pdf 11 37 build/gate/omegese-b.pdf
92m-omegese 0 - - merge build/gate/omegese-m.pdf build/gate/omegese-a.pdf build/gate/omegese-b.pdf
93g-omegese-m 0 - g:37 exec /usr/bin/gs -dNOPAUSE -dBATCH -dPDFSTOPONERROR -dPDFSTOPONWARNING -sDEVICE=nullpage build/gate/omegese-m.pdf
94x-omegese-m1 0 - - text corpus/pdf/omegese.pdf
95x-omegese-m2 0 - = text build/gate/omegese-m.pdf
96#
97# ---- split and merge: checker accepts, page count, each page's text equal by opdf and by pdftotext,
98# ---- and split then merge of all parts gives the source's pages, text and boxes ----
99s-prose-a 0 - - split corpus/pdf/prose.pdf 1 1 build/gate/prose-a.pdf
100g-prose-a 0 - g:1 exec /usr/bin/gs -dNOPAUSE -dBATCH -dPDFSTOPONERROR -dPDFSTOPONWARNING -sDEVICE=nullpage build/gate/prose-a.pdf
101x-prose-a1 0 - - text corpus/pdf/prose.pdf 1 1
102x-prose-a2 0 - = text build/gate/prose-a.pdf
103o-prose-a1 0 - - exec /usr/bin/pdftotext -raw -enc UTF-8 -f 1 -l 1 corpus/pdf/prose.pdf -
104o-prose-a2 0 - = exec /usr/bin/pdftotext -raw -enc UTF-8 build/gate/prose-a.pdf -
105s-prose-b 0 - - split corpus/pdf/prose.pdf 2 2 build/gate/prose-b.pdf
106g-prose-b 0 - g:1 exec /usr/bin/gs -dNOPAUSE -dBATCH -dPDFSTOPONERROR -dPDFSTOPONWARNING -sDEVICE=nullpage build/gate/prose-b.pdf
107x-prose-b1 0 - - text corpus/pdf/prose.pdf 2 2
108x-prose-b2 0 - = text build/gate/prose-b.pdf
109o-prose-b1 0 - - exec /usr/bin/pdftotext -raw -enc UTF-8 -f 2 -l 2 corpus/pdf/prose.pdf -
110o-prose-b2 0 - = exec /usr/bin/pdftotext -raw -enc UTF-8 build/gate/prose-b.pdf -
111m-prose 0 - - merge build/gate/prose-m.pdf build/gate/prose-a.pdf build/gate/prose-b.pdf
112g-prose-m 0 - g:2 exec /usr/bin/gs -dNOPAUSE -dBATCH -dPDFSTOPONERROR -dPDFSTOPONWARNING -sDEVICE=nullpage build/gate/prose-m.pdf
113y-prose-m1 0 - - pages corpus/pdf/prose.pdf
114y-prose-m2 0 - = pages build/gate/prose-m.pdf
115x-prose-m1 0 - - text corpus/pdf/prose.pdf
116x-prose-m2 0 - = text build/gate/prose-m.pdf
117o-prose-m1 0 - - exec /usr/bin/pdftotext -raw -enc UTF-8 corpus/pdf/prose.pdf -
118o-prose-m2 0 - = exec /usr/bin/pdftotext -raw -enc UTF-8 build/gate/prose-m.pdf -
119s-encodings-a 0 - - split corpus/pdf/encodings.pdf 1 1 build/gate/encodings-a.pdf
120g-encodings-a 0 - g:1 exec /usr/bin/gs -dNOPAUSE -dBATCH -dPDFSTOPONERROR -dPDFSTOPONWARNING -sDEVICE=nullpage build/gate/encodings-a.pdf
121x-encodings-a1 0 - - text corpus/pdf/encodings.pdf 1 1
122x-encodings-a2 0 - = text build/gate/encodings-a.pdf
123o-encodings-a1 0 - - exec /usr/bin/pdftotext -raw -enc UTF-8 -f 1 -l 1 corpus/pdf/encodings.pdf -
124o-encodings-a2 0 - = exec /usr/bin/pdftotext -raw -enc UTF-8 build/gate/encodings-a.pdf -
125s-encodings-b 0 - - split corpus/pdf/encodings.pdf 2 3 build/gate/encodings-b.pdf
126g-encodings-b 0 - g:2 exec /usr/bin/gs -dNOPAUSE -dBATCH -dPDFSTOPONERROR -dPDFSTOPONWARNING -sDEVICE=nullpage build/gate/encodings-b.pdf
127x-encodings-b1 0 - - text corpus/pdf/encodings.pdf 2 3
128x-encodings-b2 0 - = text build/gate/encodings-b.pdf
129o-encodings-b1 0 - - exec /usr/bin/pdftotext -raw -enc UTF-8 -f 2 -l 3 corpus/pdf/encodings.pdf -
130o-encodings-b2 0 - = exec /usr/bin/pdftotext -raw -enc UTF-8 build/gate/encodings-b.pdf -
131m-encodings 0 - - merge build/gate/encodings-m.pdf build/gate/encodings-a.pdf build/gate/encodings-b.pdf
132g-encodings-m 0 - g:3 exec /usr/bin/gs -dNOPAUSE -dBATCH -dPDFSTOPONERROR -dPDFSTOPONWARNING -sDEVICE=nullpage build/gate/encodings-m.pdf
133y-encodings-m1 0 - - pages corpus/pdf/encodings.pdf
134y-encodings-m2 0 - = pages build/gate/encodings-m.pdf
135x-encodings-m1 0 - - text corpus/pdf/encodings.pdf
136x-encodings-m2 0 - = text build/gate/encodings-m.pdf
137o-encodings-m1 0 - - exec /usr/bin/pdftotext -raw -enc UTF-8 corpus/pdf/encodings.pdf -
138o-encodings-m2 0 - = exec /usr/bin/pdftotext -raw -enc UTF-8 build/gate/encodings-m.pdf -
139s-encodings-notounicode-a 0 - - split corpus/pdf/encodings-notounicode.pdf 1 1 build/gate/encodings-notounicode-a.pdf
140g-encodings-notounicode-a 0 - g:1 exec /usr/bin/gs -dNOPAUSE -dBATCH -dPDFSTOPONERROR -dPDFSTOPONWARNING -sDEVICE=nullpage build/gate/encodings-notounicode-a.pdf
141x-encodings-notounicode-a1 0 - - text corpus/pdf/encodings-notounicode.pdf 1 1
142x-encodings-notounicode-a2 0 - = text build/gate/encodings-notounicode-a.pdf
143o-encodings-notounicode-a1 0 - - exec /usr/bin/pdftotext -raw -enc UTF-8 -f 1 -l 1 corpus/pdf/encodings-notounicode.pdf -
144o-encodings-notounicode-a2 0 - = exec /usr/bin/pdftotext -raw -enc UTF-8 build/gate/encodings-notounicode-a.pdf -
145s-encodings-notounicode-b 0 - - split corpus/pdf/encodings-notounicode.pdf 2 3 build/gate/encodings-notounicode-b.pdf
146g-encodings-notounicode-b 0 - g:2 exec /usr/bin/gs -dNOPAUSE -dBATCH -dPDFSTOPONERROR -dPDFSTOPONWARNING -sDEVICE=nullpage build/gate/encodings-notounicode-b.pdf
147x-encodings-notounicode-b1 0 - - text corpus/pdf/encodings-notounicode.pdf 2 3
148x-encodings-notounicode-b2 0 - = text build/gate/encodings-notounicode-b.pdf
149o-encodings-notounicode-b1 0 - - exec /usr/bin/pdftotext -raw -enc UTF-8 -f 2 -l 3 corpus/pdf/encodings-notounicode.pdf -
150o-encodings-notounicode-b2 0 - = exec /usr/bin/pdftotext -raw -enc UTF-8 build/gate/encodings-notounicode-b.pdf -
151m-encodings-notounicode 0 - - merge build/gate/encodings-notounicode-m.pdf build/gate/encodings-notounicode-a.pdf build/gate/encodings-notounicode-b.pdf
152g-encodings-notounicode-m 0 - g:3 exec /usr/bin/gs -dNOPAUSE -dBATCH -dPDFSTOPONERROR -dPDFSTOPONWARNING -sDEVICE=nullpage build/gate/encodings-notounicode-m.pdf
153y-encodings-notounicode-m1 0 - - pages corpus/pdf/encodings-notounicode.pdf
154y-encodings-notounicode-m2 0 - = pages build/gate/encodings-notounicode-m.pdf
155x-encodings-notounicode-m1 0 - - text corpus/pdf/encodings-notounicode.pdf
156x-encodings-notounicode-m2 0 - = text build/gate/encodings-notounicode-m.pdf
157o-encodings-notounicode-m1 0 - - exec /usr/bin/pdftotext -raw -enc UTF-8 corpus/pdf/encodings-notounicode.pdf -
158o-encodings-notounicode-m2 0 - = exec /usr/bin/pdftotext -raw -enc UTF-8 build/gate/encodings-notounicode-m.pdf -
159s-layout-a 0 - - split corpus/pdf/layout.pdf 1 1 build/gate/layout-a.pdf
160g-layout-a 0 - g:1 exec /usr/bin/gs -dNOPAUSE -dBATCH -dPDFSTOPONERROR -dPDFSTOPONWARNING -sDEVICE=nullpage build/gate/layout-a.pdf
161x-layout-a1 0 - - text corpus/pdf/layout.pdf 1 1
162x-layout-a2 0 - = text build/gate/layout-a.pdf
163o-layout-a1 0 - - exec /usr/bin/pdftotext -raw -enc UTF-8 -f 1 -l 1 corpus/pdf/layout.pdf -
164o-layout-a2 0 - = exec /usr/bin/pdftotext -raw -enc UTF-8 build/gate/layout-a.pdf -
165m-layout 0 - - merge build/gate/layout-m.pdf build/gate/layout-a.pdf
166g-layout-m 0 - g:1 exec /usr/bin/gs -dNOPAUSE -dBATCH -dPDFSTOPONERROR -dPDFSTOPONWARNING -sDEVICE=nullpage build/gate/layout-m.pdf
167y-layout-m1 0 - - pages corpus/pdf/layout.pdf
168y-layout-m2 0 - = pages build/gate/layout-m.pdf
169x-layout-m1 0 - - text corpus/pdf/layout.pdf
170x-layout-m2 0 - = text build/gate/layout-m.pdf
171o-layout-m1 0 - - exec /usr/bin/pdftotext -raw -enc UTF-8 corpus/pdf/layout.pdf -
172o-layout-m2 0 - = exec /usr/bin/pdftotext -raw -enc UTF-8 build/gate/layout-m.pdf -
173s-inherit-a 0 - - split corpus/gen/inherit.pdf 1 1 build/gate/inherit-a.pdf
174g-inherit-a 0 - g:1 exec /usr/bin/gs -dNOPAUSE -dBATCH -dPDFSTOPONERROR -dPDFSTOPONWARNING -sDEVICE=nullpage build/gate/inherit-a.pdf
175x-inherit-a1 0 - - text corpus/gen/inherit.pdf 1 1
176x-inherit-a2 0 - = text build/gate/inherit-a.pdf
177o-inherit-a1 0 - - exec /usr/bin/pdftotext -raw -enc UTF-8 -f 1 -l 1 corpus/gen/inherit.pdf -
178o-inherit-a2 0 - = exec /usr/bin/pdftotext -raw -enc UTF-8 build/gate/inherit-a.pdf -
179s-inherit-b 0 - - split corpus/gen/inherit.pdf 2 2 build/gate/inherit-b.pdf
180g-inherit-b 0 - g:1 exec /usr/bin/gs -dNOPAUSE -dBATCH -dPDFSTOPONERROR -dPDFSTOPONWARNING -sDEVICE=nullpage build/gate/inherit-b.pdf
181x-inherit-b1 0 - - text corpus/gen/inherit.pdf 2 2
182x-inherit-b2 0 - = text build/gate/inherit-b.pdf
183o-inherit-b1 0 - - exec /usr/bin/pdftotext -raw -enc UTF-8 -f 2 -l 2 corpus/gen/inherit.pdf -
184o-inherit-b2 0 - = exec /usr/bin/pdftotext -raw -enc UTF-8 build/gate/inherit-b.pdf -
185m-inherit 0 - - merge build/gate/inherit-m.pdf build/gate/inherit-a.pdf build/gate/inherit-b.pdf
186g-inherit-m 0 - g:2 exec /usr/bin/gs -dNOPAUSE -dBATCH -dPDFSTOPONERROR -dPDFSTOPONWARNING -sDEVICE=nullpage build/gate/inherit-m.pdf
187y-inherit-m1 0 - - pages corpus/gen/inherit.pdf
188y-inherit-m2 0 - = pages build/gate/inherit-m.pdf
189x-inherit-m1 0 - - text corpus/gen/inherit.pdf
190x-inherit-m2 0 - = text build/gate/inherit-m.pdf
191o-inherit-m1 0 - - exec /usr/bin/pdftotext -raw -enc UTF-8 corpus/gen/inherit.pdf -
192o-inherit-m2 0 - = exec /usr/bin/pdftotext -raw -enc UTF-8 build/gate/inherit-m.pdf -
193s-objstm-a 0 - - split corpus/gen/objstm.pdf 1 1 build/gate/objstm-a.pdf
194g-objstm-a 0 - g:1 exec /usr/bin/gs -dNOPAUSE -dBATCH -dPDFSTOPONERROR -dPDFSTOPONWARNING -sDEVICE=nullpage build/gate/objstm-a.pdf
195x-objstm-a1 0 - - text corpus/gen/objstm.pdf 1 1
196x-objstm-a2 0 - = text build/gate/objstm-a.pdf
197o-objstm-a1 0 - - exec /usr/bin/pdftotext -raw -enc UTF-8 -f 1 -l 1 corpus/gen/objstm.pdf -
198o-objstm-a2 0 - = exec /usr/bin/pdftotext -raw -enc UTF-8 build/gate/objstm-a.pdf -
199m-objstm 0 - - merge build/gate/objstm-m.pdf build/gate/objstm-a.pdf
200g-objstm-m 0 - g:1 exec /usr/bin/gs -dNOPAUSE -dBATCH -dPDFSTOPONERROR -dPDFSTOPONWARNING -sDEVICE=nullpage build/gate/objstm-m.pdf
201y-objstm-m1 0 - - pages corpus/gen/objstm.pdf
202y-objstm-m2 0 - = pages build/gate/objstm-m.pdf
203x-objstm-m1 0 - - text corpus/gen/objstm.pdf
204x-objstm-m2 0 - = text build/gate/objstm-m.pdf
205o-objstm-m1 0 - - exec /usr/bin/pdftotext -raw -enc UTF-8 corpus/gen/objstm.pdf -
206o-objstm-m2 0 - = exec /usr/bin/pdftotext -raw -enc UTF-8 build/gate/objstm-m.pdf -
207s-carray-a 0 - - split corpus/gen/carray.pdf 1 1 build/gate/carray-a.pdf
208g-carray-a 0 - g:1 exec /usr/bin/gs -dNOPAUSE -dBATCH -dPDFSTOPONERROR -dPDFSTOPONWARNING -sDEVICE=nullpage build/gate/carray-a.pdf
209x-carray-a1 0 - - text corpus/gen/carray.pdf 1 1
210x-carray-a2 0 - = text build/gate/carray-a.pdf
211o-carray-a1 0 - - exec /usr/bin/pdftotext -raw -enc UTF-8 -f 1 -l 1 corpus/gen/carray.pdf -
212o-carray-a2 0 - = exec /usr/bin/pdftotext -raw -enc UTF-8 build/gate/carray-a.pdf -
213m-carray 0 - - merge build/gate/carray-m.pdf build/gate/carray-a.pdf
214g-carray-m 0 - g:1 exec /usr/bin/gs -dNOPAUSE -dBATCH -dPDFSTOPONERROR -dPDFSTOPONWARNING -sDEVICE=nullpage build/gate/carray-m.pdf
215y-carray-m1 0 - - pages corpus/gen/carray.pdf
216y-carray-m2 0 - = pages build/gate/carray-m.pdf
217x-carray-m1 0 - - text corpus/gen/carray.pdf
218x-carray-m2 0 - = text build/gate/carray-m.pdf
219o-carray-m1 0 - - exec /usr/bin/pdftotext -raw -enc UTF-8 corpus/gen/carray.pdf -
220o-carray-m2 0 - = exec /usr/bin/pdftotext -raw -enc UTF-8 build/gate/carray-m.pdf -
221s-image-a 0 - - split corpus/gen/image.pdf 1 1 build/gate/image-a.pdf
222g-image-a 0 - g:1 exec /usr/bin/gs -dNOPAUSE -dBATCH -dPDFSTOPONERROR -dPDFSTOPONWARNING -sDEVICE=nullpage build/gate/image-a.pdf
223x-image-a1 0 - - text corpus/gen/image.pdf 1 1
224x-image-a2 0 - = text build/gate/image-a.pdf
225o-image-a1 0 - - exec /usr/bin/pdftotext -raw -enc UTF-8 -f 1 -l 1 corpus/gen/image.pdf -
226o-image-a2 0 - = exec /usr/bin/pdftotext -raw -enc UTF-8 build/gate/image-a.pdf -
227m-image 0 - - merge build/gate/image-m.pdf build/gate/image-a.pdf
228g-image-m 0 - g:1 exec /usr/bin/gs -dNOPAUSE -dBATCH -dPDFSTOPONERROR -dPDFSTOPONWARNING -sDEVICE=nullpage build/gate/image-m.pdf
229y-image-m1 0 - - pages corpus/gen/image.pdf
230y-image-m2 0 - = pages build/gate/image-m.pdf
231x-image-m1 0 - - text corpus/gen/image.pdf
232x-image-m2 0 - = text build/gate/image-m.pdf
233o-image-m1 0 - - exec /usr/bin/pdftotext -raw -enc UTF-8 corpus/gen/image.pdf -
234o-image-m2 0 - = exec /usr/bin/pdftotext -raw -enc UTF-8 build/gate/image-m.pdf -
235s-lzw-a 0 - - split corpus/gen/lzw.pdf 1 1 build/gate/lzw-a.pdf
236g-lzw-a 0 - g:1 exec /usr/bin/gs -dNOPAUSE -dBATCH -dPDFSTOPONERROR -dPDFSTOPONWARNING -sDEVICE=nullpage build/gate/lzw-a.pdf
237x-lzw-a2 62 - - text build/gate/lzw-a.pdf
238o-lzw-a1 0 - - exec /usr/bin/pdftotext -raw -enc UTF-8 -f 1 -l 1 corpus/gen/lzw.pdf -
239o-lzw-a2 0 - = exec /usr/bin/pdftotext -raw -enc UTF-8 build/gate/lzw-a.pdf -
240m-lzw 0 - - merge build/gate/lzw-m.pdf build/gate/lzw-a.pdf
241g-lzw-m 0 - g:1 exec /usr/bin/gs -dNOPAUSE -dBATCH -dPDFSTOPONERROR -dPDFSTOPONWARNING -sDEVICE=nullpage build/gate/lzw-m.pdf
242y-lzw-m1 0 - - pages corpus/gen/lzw.pdf
243y-lzw-m2 0 - = pages build/gate/lzw-m.pdf
244o-lzw-m1 0 - - exec /usr/bin/pdftotext -raw -enc UTF-8 corpus/gen/lzw.pdf -
245o-lzw-m2 0 - = exec /usr/bin/pdftotext -raw -enc UTF-8 build/gate/lzw-m.pdf -
246s-incr-a 0 - - split corpus/gen/incr.pdf 1 1 build/gate/incr-a.pdf
247g-incr-a 0 - g:1 exec /usr/bin/gs -dNOPAUSE -dBATCH -dPDFSTOPONERROR -dPDFSTOPONWARNING -sDEVICE=nullpage build/gate/incr-a.pdf
248x-incr-a1 0 - - text corpus/gen/incr.pdf 1 1
249x-incr-a2 0 - = text build/gate/incr-a.pdf
250o-incr-a1 0 - - exec /usr/bin/pdftotext -raw -enc UTF-8 -f 1 -l 1 corpus/gen/incr.pdf -
251o-incr-a2 0 - = exec /usr/bin/pdftotext -raw -enc UTF-8 build/gate/incr-a.pdf -
252m-incr 0 - - merge build/gate/incr-m.pdf build/gate/incr-a.pdf
253g-incr-m 0 - g:1 exec /usr/bin/gs -dNOPAUSE -dBATCH -dPDFSTOPONERROR -dPDFSTOPONWARNING -sDEVICE=nullpage build/gate/incr-m.pdf
254y-incr-m1 0 - - pages corpus/gen/incr.pdf
255y-incr-m2 0 - = pages build/gate/incr-m.pdf
256x-incr-m1 0 - - text corpus/gen/incr.pdf
257x-incr-m2 0 - = text build/gate/incr-m.pdf
258o-incr-m1 0 - - exec /usr/bin/pdftotext -raw -enc UTF-8 corpus/gen/incr.pdf -
259o-incr-m2 0 - = exec /usr/bin/pdftotext -raw -enc UTF-8 build/gate/incr-m.pdf -
260s-hybrid-a 0 - - split corpus/gen/hybrid.pdf 1 1 build/gate/hybrid-a.pdf
261g-hybrid-a 0 - g:1 exec /usr/bin/gs -dNOPAUSE -dBATCH -dPDFSTOPONERROR -dPDFSTOPONWARNING -sDEVICE=nullpage build/gate/hybrid-a.pdf
262x-hybrid-a1 0 - - text corpus/gen/hybrid.pdf 1 1
263x-hybrid-a2 0 - = text build/gate/hybrid-a.pdf
264o-hybrid-a1 0 - - exec /usr/bin/pdftotext -raw -enc UTF-8 -f 1 -l 1 corpus/gen/hybrid.pdf -
265o-hybrid-a2 0 - = exec /usr/bin/pdftotext -raw -enc UTF-8 build/gate/hybrid-a.pdf -
266m-hybrid 0 - - merge build/gate/hybrid-m.pdf build/gate/hybrid-a.pdf
267g-hybrid-m 0 - g:1 exec /usr/bin/gs -dNOPAUSE -dBATCH -dPDFSTOPONERROR -dPDFSTOPONWARNING -sDEVICE=nullpage build/gate/hybrid-m.pdf
268y-hybrid-m1 0 - - pages corpus/gen/hybrid.pdf
269y-hybrid-m2 0 - = pages build/gate/hybrid-m.pdf
270x-hybrid-m1 0 - - text corpus/gen/hybrid.pdf
271x-hybrid-m2 0 - = text build/gate/hybrid-m.pdf
272o-hybrid-m1 0 - - exec /usr/bin/pdftotext -raw -enc UTF-8 corpus/gen/hybrid.pdf -
273o-hybrid-m2 0 - = exec /usr/bin/pdftotext -raw -enc UTF-8 build/gate/hybrid-m.pdf -
274s-xrefstm-a 0 - - split corpus/gen/xrefstm.pdf 1 1 build/gate/xrefstm-a.pdf
275g-xrefstm-a 0 - g:1 exec /usr/bin/gs -dNOPAUSE -dBATCH -dPDFSTOPONERROR -dPDFSTOPONWARNING -sDEVICE=nullpage build/gate/xrefstm-a.pdf
276x-xrefstm-a1 0 - - text corpus/gen/xrefstm.pdf 1 1
277x-xrefstm-a2 0 - = text build/gate/xrefstm-a.pdf
278o-xrefstm-a1 0 - - exec /usr/bin/pdftotext -raw -enc UTF-8 -f 1 -l 1 corpus/gen/xrefstm.pdf -
279o-xrefstm-a2 0 - = exec /usr/bin/pdftotext -raw -enc UTF-8 build/gate/xrefstm-a.pdf -
280m-xrefstm 0 - - merge build/gate/xrefstm-m.pdf build/gate/xrefstm-a.pdf
281g-xrefstm-m 0 - g:1 exec /usr/bin/gs -dNOPAUSE -dBATCH -dPDFSTOPONERROR -dPDFSTOPONWARNING -sDEVICE=nullpage build/gate/xrefstm-m.pdf
282y-xrefstm-m1 0 - - pages corpus/gen/xrefstm.pdf
283y-xrefstm-m2 0 - = pages build/gate/xrefstm-m.pdf
284x-xrefstm-m1 0 - - text corpus/gen/xrefstm.pdf
285x-xrefstm-m2 0 - = text build/gate/xrefstm-m.pdf
286o-xrefstm-m1 0 - - exec /usr/bin/pdftotext -raw -enc UTF-8 corpus/gen/xrefstm.pdf -
287o-xrefstm-m2 0 - = exec /usr/bin/pdftotext -raw -enc UTF-8 build/gate/xrefstm-m.pdf -
288s-type0-a 0 - - split corpus/gen/type0.pdf 1 1 build/gate/type0-a.pdf
289g-type0-a 0 - g:1 exec /usr/bin/gs -dNOPAUSE -dBATCH -dPDFSTOPONERROR -dPDFSTOPONWARNING -sDEVICE=nullpage build/gate/type0-a.pdf
290x-type0-a1 0 - - text corpus/gen/type0.pdf 1 1
291x-type0-a2 0 - = text build/gate/type0-a.pdf
292o-type0-a1 0 - - exec /usr/bin/pdftotext -raw -enc UTF-8 -f 1 -l 1 corpus/gen/type0.pdf -
293o-type0-a2 0 - = exec /usr/bin/pdftotext -raw -enc UTF-8 build/gate/type0-a.pdf -
294m-type0 0 - - merge build/gate/type0-m.pdf build/gate/type0-a.pdf
295g-type0-m 0 - g:1 exec /usr/bin/gs -dNOPAUSE -dBATCH -dPDFSTOPONERROR -dPDFSTOPONWARNING -sDEVICE=nullpage build/gate/type0-m.pdf
296y-type0-m1 0 - - pages corpus/gen/type0.pdf
297y-type0-m2 0 - = pages build/gate/type0-m.pdf
298x-type0-m1 0 - - text corpus/gen/type0.pdf
299x-type0-m2 0 - = text build/gate/type0-m.pdf
300o-type0-m1 0 - - exec /usr/bin/pdftotext -raw -enc UTF-8 corpus/gen/type0.pdf -
301o-type0-m2 0 - = exec /usr/bin/pdftotext -raw -enc UTF-8 build/gate/type0-m.pdf -
302s-lenref-a 0 - - split corpus/gen/lenref.pdf 1 1 build/gate/lenref-a.pdf
303g-lenref-a 0 - g:1 exec /usr/bin/gs -dNOPAUSE -dBATCH -dPDFSTOPONERROR -dPDFSTOPONWARNING -sDEVICE=nullpage build/gate/lenref-a.pdf
304x-lenref-a1 0 - - text corpus/gen/lenref.pdf 1 1
305x-lenref-a2 0 - = text build/gate/lenref-a.pdf
306o-lenref-a1 0 - - exec /usr/bin/pdftotext -raw -enc UTF-8 -f 1 -l 1 corpus/gen/lenref.pdf -
307o-lenref-a2 0 - = exec /usr/bin/pdftotext -raw -enc UTF-8 build/gate/lenref-a.pdf -
308m-lenref 0 - - merge build/gate/lenref-m.pdf build/gate/lenref-a.pdf
309g-lenref-m 0 - g:1 exec /usr/bin/gs -dNOPAUSE -dBATCH -dPDFSTOPONERROR -dPDFSTOPONWARNING -sDEVICE=nullpage build/gate/lenref-m.pdf
310y-lenref-m1 0 - - pages corpus/gen/lenref.pdf
311y-lenref-m2 0 - = pages build/gate/lenref-m.pdf
312x-lenref-m1 0 - - text corpus/gen/lenref.pdf
313x-lenref-m2 0 - = text build/gate/lenref-m.pdf
314o-lenref-m1 0 - - exec /usr/bin/pdftotext -raw -enc UTF-8 corpus/gen/lenref.pdf -
315o-lenref-m2 0 - = exec /usr/bin/pdftotext -raw -enc UTF-8 build/gate/lenref-m.pdf -
316# merge of different files: the checker sees every page; pages lists follow each other
317m-mixed 0 - - merge build/gate/mixed.pdf corpus/pdf/prose.pdf corpus/pdf/encodings.pdf corpus/gen/inherit.pdf corpus/gen/type0.pdf
318g-mixed 0 - g:8 exec /usr/bin/gs -dNOPAUSE -dBATCH -dPDFSTOPONERROR -dPDFSTOPONWARNING -sDEVICE=nullpage build/gate/mixed.pdf
319i-mixed 0 - - exec /usr/bin/pdfinfo build/gate/mixed.pdf
320#
321# ---- refusals: one or more per documented code ----
322r-usage 1 - - bogus x
323r-usage-range 1 - - text corpus/gen/winansi.pdf 2 3
324r-usage-split 1 - - split corpus/pdf/prose.pdf 2 1 build/gate/never.pdf
325r-open 2 - - info corpus/no-such-file.pdf
326r-exists-1 0 - - split corpus/gen/winansi.pdf 1 1 build/gate/exists.pdf
327r-exists-2 5 - - split corpus/gen/winansi.pdf 1 1 build/gate/exists.pdf
328r-io-dir 64 - - info corpus
329r-bad-startxref 60 - - info corpus/refuse/bad-startxref.pdf
330r-bad-xref-offset 60 - - info corpus/refuse/bad-xref-offset.pdf
331r-bad-object-number 60 - - info corpus/refuse/bad-object-number.pdf
332r-missing-endstream 60 - - info corpus/refuse/missing-endstream.pdf
333r-wrong-length 60 - - info corpus/refuse/wrong-length.pdf
334r-objstm-self 60 - - info corpus/refuse/objstm-self.pdf
335r-encrypted 61 - - info corpus/refuse/encrypted.pdf
336r-encrypted-text 61 - - text corpus/refuse/encrypted.pdf
337r-encrypted-split 61 - - split corpus/refuse/encrypted.pdf 1 1 build/gate/never.pdf
338r-lzw-text 62 - - text corpus/refuse/lzw-text.pdf
339r-lzw-info 0 - - info corpus/refuse/lzw-text.pdf
340r-runlength 62 - - text corpus/refuse/runlength.pdf
341r-kids-cycle 63 - - pages corpus/refuse/kids-cycle.pdf
342r-prev-cycle 63 - - info corpus/refuse/prev-cycle.pdf
343r-nesting 63 - - info corpus/refuse/nesting.pdf
344r-name-long 63 - - info corpus/refuse/name-long.pdf
345r-cid-no-tounicode 65 - - text corpus/refuse/cid-no-tounicode.pdf
346r-identity-v 65 - - text corpus/refuse/identity-v.pdf
347r-bad-cmap 66 - - text corpus/refuse/bad-cmap.pdf
348r-w-objstm-ref 67 - - split corpus/refuse/w-objstm-ref.pdf 1 1 build/gate/never.pdf
349r-w-objstm-ref-text 0 - t:corpus/expect/w-objstm-ref.txt text corpus/refuse/w-objstm-ref.pdf
350r-w-external 67 - - split corpus/refuse/w-external.pdf 1 1 build/gate/never.pdf
351r-w-external-text 62 - - text corpus/refuse/w-external.pdf
352r-never-written 2 - - info build/gate/never.pdf
353# ---- refusals from the vendored zlib and inflate units (codes as in omega-zip S1) ----
354r-v10-e-empty 10 - - text corpus/refuse/v10-e-empty.pdf
355r-v10-f-trunc 10 - - text corpus/refuse/v10-f-trunc.pdf
356r-v10-s-trunc 10 - - text corpus/refuse/v10-s-trunc.pdf
357r-v10-zl-trunc 10 - - text corpus/refuse/v10-zl-trunc.pdf
358r-v11-b-type3 11 - - text corpus/refuse/v11-b-type3.pdf
359r-v12-s-nlen 12 - - text corpus/refuse/v12-s-nlen.pdf
360r-v13-d-manydist 13 - - text corpus/refuse/v13-d-manydist.pdf
361r-v13-d-manylen 13 - - text corpus/refuse/v13-d-manylen.pdf
362r-v14-d-clinc 14 - - text corpus/refuse/v14-d-clinc.pdf
363r-v14-d-clover 14 - - text corpus/refuse/v14-d-clover.pdf
364r-v15-d-repfirst 15 - - text corpus/refuse/v15-d-repfirst.pdf
365r-v15-d-reppast 15 - - text corpus/refuse/v15-d-reppast.pdf
366r-v16-d-litinc 16 - - text corpus/refuse/v16-d-litinc.pdf
367r-v16-d-litover 16 - - text corpus/refuse/v16-d-litover.pdf
368r-v17-d-distinc 17 - - text corpus/refuse/v17-d-distinc.pdf
369r-v17-d-distover 17 - - text corpus/refuse/v17-d-distover.pdf
370r-v18-d-noeob 18 - - text corpus/refuse/v18-d-noeob.pdf
371r-v19-f-lit286 19 - - text corpus/refuse/v19-f-lit286.pdf
372r-v20-f-dist30 20 - - text corpus/refuse/v20-f-dist30.pdf
373r-v21-f-far 21 - - text corpus/refuse/v21-f-far.pdf
374r-v30-zl-cinfo 30 - - text corpus/refuse/v30-zl-cinfo.pdf
375r-v30-zl-fcheck 30 - - text corpus/refuse/v30-zl-fcheck.pdf
376r-v30-zl-method 30 - - text corpus/refuse/v30-zl-method.pdf
377r-v31-zl-dict 31 - - text corpus/refuse/v31-zl-dict.pdf
378r-v32-zl-adler 32 - - text corpus/refuse/v32-zl-adler.pdf
379# ---- robustness ----
380rob rob-t-encodings-notounicode pdf corpus/pdf/encodings-notounicode.pdf text
381rob rob-p-encodings-notounicode pdf corpus/pdf/encodings-notounicode.pdf pages
382rob rob-t-encodings pdf corpus/pdf/encodings.pdf text
383rob rob-p-encodings pdf corpus/pdf/encodings.pdf pages
384rob rob-t-layout pdf corpus/pdf/layout.pdf text
385rob rob-p-layout pdf corpus/pdf/layout.pdf pages
386rob rob-t-prose pdf corpus/pdf/prose.pdf text
387rob rob-p-prose pdf corpus/pdf/prose.pdf pages
388rob rob-t-a85 pdf corpus/gen/a85.pdf text
389rob rob-p-a85 pdf corpus/gen/a85.pdf pages
390rob rob-t-a85flate pdf corpus/gen/a85flate.pdf text
391rob rob-p-a85flate pdf corpus/gen/a85flate.pdf pages
392rob rob-t-ahx pdf corpus/gen/ahx.pdf text
393rob rob-p-ahx pdf corpus/gen/ahx.pdf pages
394rob rob-t-carray pdf corpus/gen/carray.pdf text
395rob rob-p-carray pdf corpus/gen/carray.pdf pages
396rob rob-t-differences pdf corpus/gen/differences.pdf text
397rob rob-p-differences pdf corpus/gen/differences.pdf pages
398rob rob-t-hybrid pdf corpus/gen/hybrid.pdf text
399rob rob-p-hybrid pdf corpus/gen/hybrid.pdf pages
400rob rob-t-image pdf corpus/gen/image.pdf text
401rob rob-p-image pdf corpus/gen/image.pdf pages
402rob rob-t-incr pdf corpus/gen/incr.pdf text
403rob rob-p-incr pdf corpus/gen/incr.pdf pages
404rob rob-t-lenref pdf corpus/gen/lenref.pdf text
405rob rob-p-lenref pdf corpus/gen/lenref.pdf pages
406rob rob-t-lzw pdf corpus/gen/lzw.pdf text
407rob rob-p-lzw pdf corpus/gen/lzw.pdf pages
408rob rob-t-macroman pdf corpus/gen/macroman.pdf text
409rob rob-p-macroman pdf corpus/gen/macroman.pdf pages
410rob rob-t-objstm pdf corpus/gen/objstm.pdf text
411rob rob-p-objstm pdf corpus/gen/objstm.pdf pages
412rob rob-t-standard pdf corpus/gen/standard.pdf text
413rob rob-p-standard pdf corpus/gen/standard.pdf pages
414rob rob-t-textops pdf corpus/gen/textops.pdf text
415rob rob-p-textops pdf corpus/gen/textops.pdf pages
416rob rob-t-tounicode pdf corpus/gen/tounicode.pdf text
417rob rob-p-tounicode pdf corpus/gen/tounicode.pdf pages
418rob rob-t-type0 pdf corpus/gen/type0.pdf text
419rob rob-p-type0 pdf corpus/gen/type0.pdf pages
420rob rob-t-winansi pdf corpus/gen/winansi.pdf text
421rob rob-p-winansi pdf corpus/gen/winansi.pdf pages
422rob rob-t-xrefstm pdf corpus/gen/xrefstm.pdf text
423rob rob-p-xrefstm pdf corpus/gen/xrefstm.pdf pages
424rob rob-t-inherit pdf corpus/gen/inherit.pdf text
425rob rob-p-inherit pdf corpus/gen/inherit.pdf pages