-
Notifications
You must be signed in to change notification settings - Fork 1
/
text_extract_pdf_files.bulktest
247 lines (122 loc) · 12.3 KB
/
text_extract_pdf_files.bulktest
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
% bulktest script generated by mk_mupdf_bulktest_script
%
% Run this script using the latest GerHobbelt/mupdf::bulktest tool
% `:` at start of line is SOFT ECHO: log these lines, but don't echo them to stdout if you don't have to...
: ---------------------------------------------------------------------------------------------------------------
: nr.: %datarow
: PDF: %1
: dir: %2
: name: %3
: base: %4
: cd root: %5
: SCRIPTDIR: %{scriptdir}
: DATADIR: %{dataspecdir}
CD %{scriptdir}
CD %5
ECHO T:%{datarow}:: %1 ::
IF 10
% MUTOOL qiqqa_fingerprint0 -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/qiqqa-SHA1B-hash.txt" "%1"
% MUTOOL qiqqa_fingerprint1 -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/qiqqa-BLAKE3+B58X-hash.txt" "%1"
IF 0
MUTOOL draw -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC-x300-lwd.xml" -s mtf -r 300 -w 3840 -h 3840 -x preserve-ligatures,preserve-spans,preserve-whitespace,preserve-images,reference-images=assets/img,reuse-images,mediabox-clip=no -j everything "%1"
MUTOOL draw -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC-x300-lwd.xhtml" -s mtf -r 300 -w 3840 -h 3840 -x preserve-ligatures,preserve-spans,preserve-whitespace,preserve-images,reference-images=assets/img,reuse-images,mediabox-clip=no -j everything "%1"
MUTOOL draw -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC-x300-lwd.html" -s mtf -r 300 -w 3840 -h 3840 -x preserve-ligatures,preserve-spans,preserve-whitespace,preserve-images,reference-images=assets/img,reuse-images,mediabox-clip=no -j everything "%1"
MUTOOL draw -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC-x300-lwd.text" -s mtf -r 300 -w 3840 -h 3840 -x preserve-ligatures,preserve-spans,preserve-whitespace,preserve-images,reference-images=assets/img,reuse-images,mediabox-clip=no -j everything "%1"
MUTOOL draw -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC-x300-lwd.stext" -s mtf -r 300 -w 3840 -h 3840 -x preserve-ligatures,preserve-spans,preserve-whitespace,preserve-images,reference-images=assets/img,reuse-images,mediabox-clip=no -j everything "%1"
MUTOOL draw -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC-x300-lwd.trace" -s mtf -r 300 -w 3840 -h 3840 -x preserve-ligatures,preserve-spans,preserve-whitespace,preserve-images,reference-images=assets/img,reuse-images,mediabox-clip=no -j everything "%1"
MUTOOL draw -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC-x300-lwd.bbox" -s mtf -r 300 -w 3840 -h 3840 -x preserve-ligatures,preserve-spans,preserve-whitespace,preserve-images,reference-images=assets/img,reuse-images,mediabox-clip=no -j everything "%1"
ENDIF
IF 0
MUTOOL draw -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC-x300-lwdclip.xml" -s mtf -r 300 -w 3840 -h 3840 -x preserve-ligatures,preserve-spans,preserve-whitespace,preserve-images,reference-images=assets/img,reuse-images,mediabox-clip=yes -j everything "%1"
MUTOOL draw -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC-x300-lwdclip.xhtml" -s mtf -r 300 -w 3840 -h 3840 -x preserve-ligatures,preserve-spans,preserve-whitespace,preserve-images,reference-images=assets/img,reuse-images,mediabox-clip=yes -j everything "%1"
MUTOOL draw -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC-x300-lwdclip.html" -s mtf -r 300 -w 3840 -h 3840 -x preserve-ligatures,preserve-spans,preserve-whitespace,preserve-images,reference-images=assets/img,reuse-images,mediabox-clip=yes -j everything "%1"
MUTOOL draw -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC-x300-lwdclip.text" -s mtf -r 300 -w 3840 -h 3840 -x preserve-ligatures,preserve-spans,preserve-whitespace,preserve-images,reference-images=assets/img,reuse-images,mediabox-clip=yes -j everything "%1"
MUTOOL draw -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC-x300-lwdclip.stext" -s mtf -r 300 -w 3840 -h 3840 -x preserve-ligatures,preserve-spans,preserve-whitespace,preserve-images,reference-images=assets/img,reuse-images,mediabox-clip=yes -j everything "%1"
MUTOOL draw -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC-x300-lwdclip.trace" -s mtf -r 300 -w 3840 -h 3840 -x preserve-ligatures,preserve-spans,preserve-whitespace,preserve-images,reference-images=assets/img,reuse-images,mediabox-clip=yes -j everything "%1"
MUTOOL draw -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC-x300-lwdclip.bbox" -s mtf -r 300 -w 3840 -h 3840 -x preserve-ligatures,preserve-spans,preserve-whitespace,preserve-images,reference-images=assets/img,reuse-images,mediabox-clip=yes -j everything "%1"
ENDIF
IF 0
MUTOOL draw -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC-x300-lwdpd.html" -s mtf -r 300 -w 3840 -h 3840 -x preserve-ligatures,preserve-whitespace,dehyphenate -y l "%1"
MUTOOL draw -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC-x300.html" -s mtf -r 300 -w 3840 -h 3840 -y l "%1"
ENDIF
IF 0
MUTOOL mudraw -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC-x72.ocr.txt" -s mtf -r 72 -y l -P -B 50 "%1"
MUTOOL mudraw -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC-x300.ocr.html" -s mtf -r 300 -w 3840 -h 3840 -y l -P -B 50 "%1"
MUTOOL show -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC.show.xml-meta.txt" -b "%1" Root/Metadata
ENDIF
IF 0
MUTOOL draw -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC-x72.html" -s mtf -y l "%1"
MUTOOL draw -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC-x72.txt" -s mtf -y l "%1"
MUTOOL draw -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC-x72.stext" -s mtf -y l "%1"
MUTOOL draw -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC-x72.xml" -s mtf -y l "%1"
MUTOOL draw -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC-x72.trace" -s mtf -y l "%1"
MUTOOL draw -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC-x72.pdf" -s mtf -y l "%1"
MUTOOL draw -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC-x72.stext.json" -s mtf -y l "%1"
MUTOOL draw -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC-x72.xhtml" -s mtf -y l "%1"
MUTOOL draw -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC-x72.bbox" -s mtf -y l "%1"
ENDIF
IF 10
% MUTOOL draw -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC-x300.html" -s mtf -r 300 -w 3840 -h 3840 -y l "%1"
MUTOOL draw -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC-x300.txt" -s mtf -r 300 -w 3840 -h 3840 -y l "%1"
MUTOOL draw -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC-x300.stext" -s mtf -r 300 -w 3840 -h 3840 -y l "%1"
% MUTOOL draw -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC-x300.xml" -s mtf -r 300 -w 3840 -h 3840 -y l "%1"
% MUTOOL draw -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC-x300.trace" -s mtf -r 300 -w 3840 -h 3840 -y l "%1"
MUTOOL draw -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC-x300.pdf" -s mtf -r 300 -w 3840 -h 3840 -y l "%1"
% MUTOOL draw -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC-x300.stext.json" -s mtf -r 300 -w 3840 -h 3840 -y l "%1"
% MUTOOL draw -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC-x300.xhtml" -s mtf -r 300 -w 3840 -h 3840 -y l "%1"
% MUTOOL draw -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC-x300.bbox" -s mtf -r 300 -w 3840 -h 3840 -y l "%1"
ENDIF
IF 10
% MUTOOL draw -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC-x72.svg" -s mtf -y l "%1"
% MUTOOL draw -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC-x72.pclm" -s mtf -y l "%1"
MUTOOL draw -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC-x72.png" -s mtf -y l -P -B 50 "%1"
% MUTOOL draw -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC-x72.webp" -s mtf -y l -P -B 50 "%1"
% MUTOOL draw -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC-x72.psd" -s mtf -y l "%1"
% MUTOOL draw -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC-x72.ps" -s mtf -y l "%1"
ENDIF
IF 10
% MUTOOL draw -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC-x300.svg" -s mtf -r 300 -w 3840 -h 3840 -y l "%1"
% MUTOOL draw -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC-x300.pclm" -s mtf -r 300 -w 3840 -h 3840 -y l "%1"
MUTOOL draw -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC-x300.png" -s mtf -r 300 -w 3840 -h 3840 -y l -P -B 50 "%1"
MUTOOL draw -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC-x300.png" -s mtf -r 300 -w 3840 -h 3840 -y l -P "%1"
% MUTOOL draw -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC-x300.webp" -s mtf -r 300 -w 3840 -h 3840 -y l -P -B 50 "%1"
% MUTOOL draw -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC-x300.psd" -s mtf -r 300 -w 3840 -h 3840 -y l "%1"
% MUTOOL draw -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC-x300.ps" -s mtf -r 300 -w 3840 -h 3840 -y l "%1"
ENDIF
IF 10
MUTOOL convert -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC.convert.pdf" -W 1200 -H 1800 -O decompress,garbage,sanitize,pretty "%1"
% MUTOOL convert -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC.convert-2.pdf" -W 1200 -H 1800 -O decompress,pretty "%1"
% MUTOOL convert -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC.convert-2G.pdf" -W 1200 -H 1800 -O decompress,garbage,pretty "%1"
% MUTOOL convert -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC.convert-2S.pdf" -W 1200 -H 1800 -O decompress,sanitize,pretty "%1"
MUTOOL convert -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC.convert-1D.pdf" -W 1200 -H 1800 -O decompress "%1"
MUTOOL convert -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC.convert-1P.pdf" -W 1200 -H 1800 -O pretty "%1"
MUTOOL convert -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC.convert-0A.pdf" -W 1200 -H 1800 "%1"
MUTOOL convert -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC.convert-0B.pdf" "%1"
% MUTOOL convert -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC.convert-text.svg" -W 1200 -H 1800 -O text=text "%1"
% MUTOOL convert -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC.convert-path.svg" -W 1200 -H 1800 -O text=path "%1"
ENDIF
IF 10
MUTOOL clean -D -m -s "%1" "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC.clean-basic.pdf"
MUTOOL clean -D -d -z -f -i -s "%1" "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC.clean-recompressed.pdf"
MUTOOL clean -D -m -s -l "%1" "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC.clean-linear.pdf"
MUTOOL clean -D -m -s -c -g "%1" "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC.clean-medium.pdf"
MUTOOL clean -D -m -s -c -gggg "%1" "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC.clean-heavy.pdf"
MUTOOL clean -D -m -s -c -dd -z -f -i -AA -gggg "%1" "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC.clean-insane.pdf"
MUTOOL clean -l -D -m -s -c -d -z -f -i -AA -gggg "%1" "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC.clean-linear-insane.pdf"
ENDIF
IF 10
% MUTOOL raster -F ppm -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/%04d.raster-x150.ppm" -s mt -r 150 -P "%1"
% MUTOOL raster -F ppm -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/%04d.raster.ppm" -s mt "%1"
MUTOOL raster -F png -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/%04d-raster-x150.png" -s mt -r 150 -w 3840 -h 3840 "%1"
MUTOOL raster -F png -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/%04d-raster.png" -s mt "%1"
ENDIF
IF 10
MUTOOL trace -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC.trace.txt" -W 1200 -H 1800 "%1"
MUTOOL clean -gggg -D -c -s -AA "%1" "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC.clean.pdf"
MUTOOL metadump -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC.extract.meta.json" -m 2 -i p "%1"
MUTOOL extract -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC.extract.dump" -r "%1"
MUTOOL info -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC.info.txt" -F -I -M -P -S -X "%1"
MUTOOL pages -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC.pages.txt" "%1"
MUTOOL show -o "%{remap(__bulktest)}/TextExtractFiles-T1/%2/%4/FULL-DOC.show.txt" -b "%1" trailer xref pages grep outline js form trailer/* Root/* Root/Metadata 0/* 1/* 2/* 3/* 4/* 5/* 6/* 7/* 8/* 9/* 10/* 11/* 12/* 13/* trailer/Info trailer/Info/Author
ENDIF
ENDIF