pdfix-cli 9.1.1__py3-none-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3959 @@
1
+ {
2
+ "title": "PDFix Batch Actions",
3
+ "desc": "Custom PDF actions automate the editing of PDFs and resolve various accessibility issues, streamlining document editing and remediation. This approach enhances efficiency and simplifies tasks by eliminating the need for programming skills. By utilizing a bespoke sequence of actions, you can process PDF documents tailored to your specific requirements",
4
+ "example": {
5
+ "title": "PDFix Batch Action Example",
6
+ "desc": "Custom action sequence to re-tag the PDF document and set the PDF/UA-1 identifier",
7
+ "actions": [
8
+ {
9
+ "name": "clear_structure",
10
+ "params": [
11
+ {
12
+ "name": "clear_tags",
13
+ "value": true
14
+ },
15
+ {
16
+ "name": "clear_struct_tree",
17
+ "value": true
18
+ },
19
+ {
20
+ "name": "clear_bookmarks",
21
+ "value": false
22
+ }
23
+ ]
24
+ },
25
+ {
26
+ "name": "add_tags",
27
+ "params": [
28
+ {
29
+ "name": "standard_attrs",
30
+ "value": false
31
+ },
32
+ {
33
+ "name": "sequential_headings",
34
+ "value": true
35
+ }
36
+ ]
37
+ },
38
+ {
39
+ "name": "set_pdf_ua_standard",
40
+ "params": [
41
+ {
42
+ "name": "part_number",
43
+ "value": 1
44
+ }
45
+ ]
46
+ }
47
+ ]
48
+ },
49
+ "default": {
50
+ "program": "\"${action_path}/pdfix_app\" batch --input \"${input_pdf}\" --output \"${output_pdf}\" -c \"${config_json}\" -m \"${license_name}\" -k \"${license_key}\"",
51
+ "desc": "Run the PDFix CLI",
52
+ "name": "PDFix CLI",
53
+ "args": [
54
+ {
55
+ "name": "input_pdf",
56
+ "title": "Input PDF",
57
+ "desc": "Specify the input PDF file path",
58
+ "flags": 2,
59
+ "ext": "pdf",
60
+ "type": "file_path",
61
+ "value": ""
62
+ },
63
+ {
64
+ "name": "output_pdf",
65
+ "title": "Output PDF",
66
+ "desc": "Specify the output PDF file path",
67
+ "flags": 4,
68
+ "ext": "pdf",
69
+ "type": "file_path",
70
+ "value": ""
71
+ }
72
+ ]
73
+ },
74
+ "actions": [
75
+ {
76
+ "title": "PDF to HTML",
77
+ "desc": "Convert a PDF to HTML",
78
+ "name": "pdf_to_html",
79
+ "category": "Conversion",
80
+ "icon": "html",
81
+ "program": "\"${action_path}/pdfix_app\" pdf2html --input \"${input_pdf}\" --output \"${output_html}\" --type \"${html_type}\" --flags \"${flags}\" -m \"${license_name}\" -k \"${license_key}\"",
82
+ "args": [
83
+ {
84
+ "name": "input_pdf",
85
+ "title": "Input PDF",
86
+ "desc": "Specify the input PDF file path",
87
+ "ext": "pdf",
88
+ "flags": 2,
89
+ "type": "file_path",
90
+ "value": ""
91
+ },
92
+ {
93
+ "name": "output_html",
94
+ "title": "Ouput HTML",
95
+ "desc": "Specify the output HTML file",
96
+ "ext": "html",
97
+ "flags": 4,
98
+ "type": "file_path",
99
+ "value": ""
100
+ },
101
+ {
102
+ "title": "HTML Layout",
103
+ "desc": "Choose the HTML layout type",
104
+ "name": "html_type",
105
+ "type": "int",
106
+ "flags": 1,
107
+ "set": [
108
+ {
109
+ "desc": "Original layout",
110
+ "value": 0
111
+ },
112
+ {
113
+ "desc": "Responsive layout",
114
+ "value": 1
115
+ },
116
+ {
117
+ "desc": "Layout defined by PDF Tags",
118
+ "value": 2
119
+ }
120
+ ],
121
+ "value": 0
122
+ },
123
+ {
124
+ "title": "Template",
125
+ "desc": "Load the template from a file as the current template. If the file is empty, the default template will be applied",
126
+ "name": "template",
127
+ "type": "template",
128
+ "value": ""
129
+ },
130
+ {
131
+ "title": "Preflight",
132
+ "desc": "Preflight the document and merge its preflight values with the current template",
133
+ "name": "preflight",
134
+ "type": "bool",
135
+ "value": false
136
+ },
137
+ {
138
+ "title": "Conversion Flags",
139
+ "desc": "Define conversion flags",
140
+ "name": "flags",
141
+ "type": "flag",
142
+ "flags": 1,
143
+ "set": [
144
+ {
145
+ "desc": "Export JavaScript",
146
+ "value": 1
147
+ },
148
+ {
149
+ "desc": "Export fonts",
150
+ "value": 2
151
+ },
152
+ {
153
+ "desc": "Use default font sizes",
154
+ "value": 4
155
+ },
156
+ {
157
+ "desc": "Retain text color",
158
+ "value": 8
159
+ },
160
+ {
161
+ "desc": "Inline CSS styles",
162
+ "value": 32
163
+ },
164
+ {
165
+ "desc": "Inline JavaScript code",
166
+ "value": 64
167
+ },
168
+ {
169
+ "desc": "Embed images within the document",
170
+ "value": 128
171
+ },
172
+ {
173
+ "desc": "Embed fonts within the document",
174
+ "value": 256
175
+ },
176
+ {
177
+ "desc": "Apply gray padding",
178
+ "value": 512
179
+ }
180
+ ],
181
+ "value": 237
182
+ }
183
+ ]
184
+ },
185
+ {
186
+ "title": "PDF to JSON",
187
+ "desc": "Convert a PDF to JSON",
188
+ "name": "pdf_to_json",
189
+ "category": "Conversion",
190
+ "icon": "data_object",
191
+ "program": "\"${action_path}/pdfix_app\" pdf2json --input \"${input_pdf}\" --output \"${output_json}\" --flags \"${flags}\" -m \"${license_name}\" -k \"${license_key}\"",
192
+ "args": [
193
+ {
194
+ "name": "input_pdf",
195
+ "title": "Input PDF",
196
+ "desc": "Specify the input PDF file path",
197
+ "flags": 2,
198
+ "ext": "pdf",
199
+ "type": "file_path",
200
+ "value": "..."
201
+ },
202
+ {
203
+ "name": "output_json",
204
+ "title": "Output JSON",
205
+ "desc": "Specify the output JSON file path",
206
+ "ext": "json",
207
+ "flags": 4,
208
+ "type": "file_path",
209
+ "value": ""
210
+ },
211
+ {
212
+ "title": "Conversion Flags",
213
+ "desc": "Specify flags for the extracted content",
214
+ "name": "flags",
215
+ "type": "flag",
216
+ "value": 1,
217
+ "set": [
218
+ {
219
+ "desc": "Include document metadata",
220
+ "value": 1
221
+ },
222
+ {
223
+ "desc": "Include page information",
224
+ "value": 2
225
+ },
226
+ {
227
+ "desc": "Extract page content",
228
+ "value": 16
229
+ },
230
+ {
231
+ "desc": "Extract document structure tree",
232
+ "value": 32
233
+ },
234
+ {
235
+ "desc": "Extract layout recognition",
236
+ "value": 64
237
+ },
238
+ {
239
+ "desc": "Include bounding box data",
240
+ "value": 256
241
+ },
242
+ {
243
+ "desc": "Include content marks",
244
+ "value": 512
245
+ },
246
+ {
247
+ "desc": "Include text content",
248
+ "value": 4096
249
+ },
250
+ {
251
+ "desc": "Include text style",
252
+ "value": 8192
253
+ },
254
+ {
255
+ "desc": "Include text state",
256
+ "value": 16384
257
+ },
258
+ {
259
+ "desc": "Extract images as base64",
260
+ "value": 65536
261
+ },
262
+ {
263
+ "desc": "Extract annotations",
264
+ "value": 131072
265
+ },
266
+ {
267
+ "desc": "Extract bookmarks",
268
+ "value": 262144
269
+ }
270
+ ]
271
+ }
272
+ ]
273
+ },
274
+ {
275
+ "title": "Set Document Properties",
276
+ "desc": "Set document metadata and properties",
277
+ "name": "set_doc_info",
278
+ "icon": "docinfo",
279
+ "category": "Metadata",
280
+ "keywords": "Document properties and metadata, Author, Title, Subject, Keywords, Producer, Creator",
281
+ "params": [
282
+ {
283
+ "title": "Set Author",
284
+ "desc": "Set the document author",
285
+ "name": "set_author",
286
+ "type": "bool",
287
+ "value": false
288
+ },
289
+ {
290
+ "title": "Author",
291
+ "desc": "Specify the author",
292
+ "name": "author",
293
+ "type": "string",
294
+ "value": "",
295
+ "disable": "(set_author==false)"
296
+ },
297
+ {
298
+ "title": "Set Title",
299
+ "desc": "Set the document title",
300
+ "name": "set_title",
301
+ "type": "bool",
302
+ "value": false
303
+ },
304
+ {
305
+ "title": "Title",
306
+ "desc": "Specify the title",
307
+ "name": "title",
308
+ "type": "string",
309
+ "value": "",
310
+ "disable": "(set_title==false)"
311
+ },
312
+ {
313
+ "title": "Set Subject",
314
+ "desc": "Set the document subject",
315
+ "name": "set_subject",
316
+ "type": "bool",
317
+ "value": false
318
+ },
319
+ {
320
+ "title": "Subject",
321
+ "desc": "Specify the subject",
322
+ "name": "subject",
323
+ "type": "string",
324
+ "value": "",
325
+ "disable": "(set_subject==false)"
326
+ },
327
+ {
328
+ "title": "Set Keywords",
329
+ "desc": "Set the document keywords",
330
+ "name": "set_keywords",
331
+ "type": "bool",
332
+ "value": false
333
+ },
334
+ {
335
+ "title": "Keywords",
336
+ "desc": "Specify the keywords",
337
+ "name": "keywords",
338
+ "type": "string",
339
+ "value": "",
340
+ "disable": "(set_keywords==false)"
341
+ },
342
+ {
343
+ "title": "Set Producer",
344
+ "desc": "Set the document producer",
345
+ "name": "set_producer",
346
+ "type": "bool",
347
+ "value": false
348
+ },
349
+ {
350
+ "title": "Producer",
351
+ "desc": "Specify the producer name",
352
+ "name": "producer",
353
+ "type": "string",
354
+ "value": "",
355
+ "disable": "(set_producer==false)"
356
+ },
357
+ {
358
+ "title": "Set Creator",
359
+ "desc": "Set the document creator",
360
+ "name": "set_creator",
361
+ "type": "bool",
362
+ "value": false
363
+ },
364
+ {
365
+ "title": "Creator",
366
+ "desc": "Specify the creator",
367
+ "name": "creator",
368
+ "type": "string",
369
+ "value": "",
370
+ "disable": "(set_creator==false)"
371
+ }
372
+ ]
373
+ },
374
+ {
375
+ "title": "Set PDF Version",
376
+ "desc": "Set the PDF version",
377
+ "name": "set_pdf_version",
378
+ "icon": "pdfversion",
379
+ "category": "Metadata",
380
+ "params": [
381
+ {
382
+ "title": "PDF Version",
383
+ "desc": "Choose the PDF version designation",
384
+ "name": "version_number",
385
+ "type": "int",
386
+ "flags": 1,
387
+ "set": [
388
+ {
389
+ "desc": "PDF 1.4",
390
+ "value": 14
391
+ },
392
+ {
393
+ "desc": "PDF 1.5",
394
+ "value": 15
395
+ },
396
+ {
397
+ "desc": "PDF 1.6",
398
+ "value": 16
399
+ },
400
+ {
401
+ "desc": "PDF 1.7",
402
+ "value": 17
403
+ },
404
+ {
405
+ "desc": "PDF 2.0",
406
+ "value": 20
407
+ }
408
+ ],
409
+ "value": 17
410
+ }
411
+ ]
412
+ },
413
+ {
414
+ "title": "Set PDF/UA Standard",
415
+ "desc": "Set the PDF/UA identifier",
416
+ "name": "set_pdf_ua_standard",
417
+ "icon": "pdfuaid",
418
+ "category": "Metadata",
419
+ "keywords": "PDF/UA-1, PDF/UA-2, XMP file, compliant, PDF/UA identifier missing",
420
+ "params": [
421
+ {
422
+ "title": "Part Identifier",
423
+ "desc": "Specify the part number of the International Standard to which the file conforms",
424
+ "name": "part_number",
425
+ "type": "string",
426
+ "flags": 1,
427
+ "set": [
428
+ {
429
+ "desc": "Remove PDF/UA Part Number",
430
+ "value": ""
431
+ },
432
+ {
433
+ "desc": "Set PDF/UA-1",
434
+ "value": "1"
435
+ },
436
+ {
437
+ "desc": "Set PDF/UA-2",
438
+ "value": "2"
439
+ }
440
+ ],
441
+ "value": "1"
442
+ },
443
+ {
444
+ "title": "Rev Number",
445
+ "desc": "Specify the four-digit year of publication or revision (ignored for part 1)",
446
+ "name": "rev_number",
447
+ "type": "string",
448
+ "value": "2023",
449
+ "disable": "(part_number!=2)"
450
+ }
451
+ ]
452
+ },
453
+ {
454
+ "title": "Set Suspect Value",
455
+ "desc": "Fix the document MarkInfo dictionary and Suspects entry",
456
+ "name": "set_suspect_value",
457
+ "icon": "fixsuspect",
458
+ "category": "Metadata",
459
+ "keywords": "Suspect entry has a value of true"
460
+ },
461
+ {
462
+ "title": "Fix Optional Content",
463
+ "desc": "Fix the optional content configuration dictionary",
464
+ "name": "fix_oc_name",
465
+ "icon": "fixoc",
466
+ "category": "Metadata",
467
+ "keywords": "Configs entry, OCProperties, Configuration Dictionary, AS key, D entry, Configs entry, Name entry, OCCD, optional content configuration dictionary"
468
+ },
469
+ {
470
+ "title": "Fix XMP Metadata",
471
+ "desc": "Repair, normalize, and optionally reset document XMP metadata for improved compliance and consistency",
472
+ "name": "fix_metadata",
473
+ "icon": "fix_metadata",
474
+ "category": "Metadata",
475
+ "keywords": "XMP metadata, fix metadata, normalize metadata, reset metadata, rebuild metadata, metadata repair, PDF metadata, PDF/UA metadata, PDF/A metadata, metadata consistency, remove custom metadata, clean metadata, invalid metadata, missing metadata",
476
+ "params": [
477
+ {
478
+ "title": "Reset Metadata",
479
+ "desc": "Recreate XMP metadata from scratch by removing all non-essential and custom entries, keeping only the minimal set required for standards compliance",
480
+ "name": "reset_metadata",
481
+ "type": "bool",
482
+ "value": false
483
+ }
484
+ ]
485
+ },
486
+ {
487
+ "title": "Fix Display Document Title",
488
+ "desc": "Fix the ViewerPreferences dictionary",
489
+ "name": "set_display_doc_title",
490
+ "icon": "titledocfix",
491
+ "category": "Metadata",
492
+ "keywords": "DisplayDocTitle, display of document title in window title, ViewerPreferences dictionary"
493
+ },
494
+ {
495
+ "title": "Apply Standard Tags",
496
+ "desc": "Changes all non-standard tags to standard tags according to their role mapping",
497
+ "name": "apply_standard_tags",
498
+ "icon": "apply_standard_tags",
499
+ "category": "Tags",
500
+ "keywords": "renaming non-standard tag to standard tags, remapping",
501
+ "params": [
502
+ {
503
+ "title": "Tags",
504
+ "desc": "Specify the tags using a ECMAScript regular expression or define them by template tag_update",
505
+ "name": "tag_names",
506
+ "type": "tag",
507
+ "value": ".*",
508
+ "values": [
509
+ {
510
+ "desc": "All tags",
511
+ "value": ".*"
512
+ }
513
+ ]
514
+ }
515
+ ]
516
+ },
517
+ {
518
+ "title": "Fix Role Mapping",
519
+ "desc": "Resolve issues in the document's Role Map to ensure correct structure type mappings",
520
+ "name": "remove_standard_tags_mapping",
521
+ "icon": "fix_role_mapping",
522
+ "category": "Accessibility",
523
+ "keywords": "fix roles, unallowed mapping, circular mapping",
524
+ "params": [
525
+ {
526
+ "title": "Remove standard tags mapping",
527
+ "desc": "Remove role mapping of standard structure types",
528
+ "name": "standard_role_mapping",
529
+ "type": "bool",
530
+ "value": true
531
+ },
532
+ {
533
+ "title": "Remove circular role mapping",
534
+ "desc": "Detect and remove circular role mappings that is explicitly permitted",
535
+ "name": "circular_role_mapping",
536
+ "type": "bool",
537
+ "value": true
538
+ },
539
+ {
540
+ "title": "Clear Role Map",
541
+ "desc": "Clear the role map specified in the structure tree root",
542
+ "name": "clear_rolemap",
543
+ "type": "bool",
544
+ "value": true
545
+ }
546
+ ]
547
+ },
548
+ {
549
+ "title": "Set Role Mapping",
550
+ "desc": "Map the name of structure types used in the document to the selected standard structure types",
551
+ "name": "set_role_mapping",
552
+ "icon": "set_role_mapping",
553
+ "category": "Tags",
554
+ "keywords": "fix roles, missing mapping",
555
+ "params": [
556
+ {
557
+ "title": "Tags",
558
+ "desc": "Specify the tag types using a ECMAScript regular expression or define them by template tag_update",
559
+ "name": "tag_names",
560
+ "type": "tag",
561
+ "value": ".*",
562
+ "values": [
563
+ {
564
+ "desc": "All tags",
565
+ "value": ".*"
566
+ },
567
+ {
568
+ "desc": "Title and all headings level 6 or higher (H6+)",
569
+ "value": "^Title$|H(?:[6-9]|[1-9]\\d+)$"
570
+ }
571
+ ]
572
+ },
573
+ {
574
+ "title": "Standard tag type",
575
+ "desc": "Specify the standard tag name to which the selected tag will be role-mapped",
576
+ "name": "standard_tag_name",
577
+ "type": "string",
578
+ "value": "P"
579
+ },
580
+ {
581
+ "title": "Overwrite",
582
+ "desc": "Replace the current tag mapping",
583
+ "name": "overwrite",
584
+ "type": "bool",
585
+ "value": false
586
+ }
587
+ ]
588
+ },
589
+ {
590
+ "title": "Fix Media Clip",
591
+ "desc": "Define a MIME type for the media clip annotation file",
592
+ "name": "fix_media_clip_keys",
593
+ "icon": "media",
594
+ "category": "Annotations",
595
+ "keywords": "CT key is missing, Alt key",
596
+ "params": [
597
+ {
598
+ "title": "Media Clip",
599
+ "desc": "CT key",
600
+ "name": "ct_key",
601
+ "type": "string",
602
+ "flags": 1,
603
+ "set": [
604
+ {
605
+ "desc": "text/plain",
606
+ "value": "text/plain"
607
+ },
608
+ {
609
+ "desc": "text/html",
610
+ "value": "text/html"
611
+ },
612
+ {
613
+ "desc": "image/jpeg",
614
+ "value": "image/jpeg"
615
+ },
616
+ {
617
+ "desc": "audio/mp3",
618
+ "value": "audio/mp3"
619
+ },
620
+ {
621
+ "desc": "video/mp4",
622
+ "value": "video/mp4"
623
+ }
624
+ ],
625
+ "value": "text/plain"
626
+ }
627
+ ]
628
+ },
629
+ {
630
+ "title": "Set Document Language",
631
+ "desc": "Set the document language",
632
+ "name": "set_language",
633
+ "icon": "language",
634
+ "category": "Metadata",
635
+ "keywords": "no document language determined, natural language, metadata, correctness of language attribute",
636
+ "params": [
637
+ {
638
+ "title": "Language",
639
+ "desc": "Document language",
640
+ "name": "lang",
641
+ "type": "lang",
642
+ "value": "en-US"
643
+ },
644
+ {
645
+ "title": "Overwrite",
646
+ "desc": "Replace the current language if it already exists",
647
+ "name": "overwrite",
648
+ "type": "bool",
649
+ "value": false
650
+ }
651
+ ]
652
+ },
653
+ {
654
+ "title": "Set Title",
655
+ "desc": "Set the document title",
656
+ "name": "set_title",
657
+ "icon": "title",
658
+ "category": "Metadata",
659
+ "keywords": "metadata, XMP, dc:title, ViewerPreferences, DisplayDocTitle",
660
+ "params": [
661
+ {
662
+ "title": "Title",
663
+ "desc": "Define a source for detecting the document title",
664
+ "name": "title_type",
665
+ "type": "int",
666
+ "value": 2,
667
+ "flags": 1,
668
+ "set": [
669
+ {
670
+ "desc": "Define a custom title",
671
+ "value": 0
672
+ },
673
+ {
674
+ "desc": "Use text from the first matching tag",
675
+ "value": 1
676
+ },
677
+ {
678
+ "desc": "Get title from the file name",
679
+ "value": 2
680
+ }
681
+ ]
682
+ },
683
+ {
684
+ "title": "Custom Title",
685
+ "desc": "Custom title",
686
+ "name": "custom_text",
687
+ "type": "string",
688
+ "value": "",
689
+ "disable": "(title_type!=0)"
690
+ },
691
+ {
692
+ "title": "Use Text from Tag",
693
+ "desc": "Define the tag type whose content is used for the title text",
694
+ "name": "description_tag",
695
+ "type": "string",
696
+ "value": "Caption",
697
+ "disable": "(title_type!=1)"
698
+ },
699
+ {
700
+ "title": "Overwrite",
701
+ "desc": "Replace the current title if it already exists",
702
+ "name": "overwrite",
703
+ "type": "bool",
704
+ "value": false
705
+ }
706
+ ]
707
+ },
708
+ {
709
+ "title": "AutoTag",
710
+ "desc": "Automatically add accessibility tags to an untagged document",
711
+ "name": "add_tags",
712
+ "icon": "autotag",
713
+ "category": "Accessibility",
714
+ "keywords": "add tags, re-tag, untagged document, accessibility tags layout recognition, layout detection, automated tagging, object not tagged, layout template",
715
+ "params": [
716
+ {
717
+ "title": "Template",
718
+ "desc": "Layout template that controls how content is recognized and tagged. Load from a file or edit the template JSON inline. Leave empty to use the default template.",
719
+ "name": "template",
720
+ "type": "template",
721
+ "flags": 8,
722
+ "value": ""
723
+ },
724
+ {
725
+ "title": "Preflight",
726
+ "desc": "Preflight the document and combine the preflight values with the current template",
727
+ "name": "preflight",
728
+ "type": "bool",
729
+ "value": false,
730
+ "flags": 8
731
+ },
732
+ {
733
+ "title": "Add Layout Attributes",
734
+ "desc": "Add all detected layout attributes",
735
+ "name": "standard_attrs",
736
+ "type": "bool",
737
+ "value": false
738
+ },
739
+ {
740
+ "title": "Sequential Heading Levels",
741
+ "desc": "Keep headings in sequentially descending order",
742
+ "name": "sequential_headings",
743
+ "type": "bool",
744
+ "value": false
745
+ },
746
+ {
747
+ "title": "Overwrite",
748
+ "desc": "Replace existing tag structure if it already exist",
749
+ "name": "overwrite",
750
+ "type": "bool",
751
+ "value": true
752
+ }
753
+ ]
754
+ },
755
+ {
756
+ "title": "Clear Document Structure",
757
+ "desc": "Clear the document structure",
758
+ "name": "clear_structure",
759
+ "icon": "clear",
760
+ "category": "Accessibility",
761
+ "keywords": "clear tags, clear structure tree, clear bookmarks, remove all tags, remove structure tree, remove bookmarks",
762
+ "params": [
763
+ {
764
+ "title": "Clear Content Marks",
765
+ "desc": "Clear content marks",
766
+ "name": "clear_tags",
767
+ "type": "bool",
768
+ "value": true
769
+ },
770
+ {
771
+ "title": "Clear Structure Tree",
772
+ "desc": "Clear the structure tree",
773
+ "name": "clear_struct_tree",
774
+ "type": "bool",
775
+ "value": true
776
+ },
777
+ {
778
+ "title": "Clear Bookmarks",
779
+ "desc": "Clear bookmarks",
780
+ "name": "clear_bookmarks",
781
+ "type": "bool",
782
+ "value": true
783
+ }
784
+ ]
785
+ },
786
+ {
787
+ "title": "Delete Bookmarks",
788
+ "desc": "Delete all bookmarks from the document",
789
+ "name": "delete_bookmarks",
790
+ "icon": "bin",
791
+ "category": "Bookmarks",
792
+ "keywords": "clear bookmarks, delete bookmarks, remove bookmarks, document bookmarks"
793
+ },
794
+ {
795
+ "title": "Fix Fonts",
796
+ "desc": "Embed and fix all fonts used in the document to ensure consistent rendering and reliable text extraction across platforms and assistive technologies.",
797
+ "name": "embed_font",
798
+ "icon": "fontembed",
799
+ "category": "Fonts",
800
+ "keywords": "notdef glyph, incorrect glyph widths, embedded font, missing unicode mapping, CIDSystemInfo, CIDToGIDMap, font dictionary",
801
+ "params": [
802
+ {
803
+ "title": "Embed Font",
804
+ "desc": "Embed fonts if not already embedded",
805
+ "name": "embed_font",
806
+ "type": "bool",
807
+ "value": false
808
+ },
809
+ {
810
+ "title": "Fix ToUnicode Mappings",
811
+ "desc": "Rebuild the ToUnicode CMap for fonts with missing Unicode mappings for used character codes.",
812
+ "name": "add_missing_unicode",
813
+ "type": "bool",
814
+ "value": true
815
+ },
816
+ {
817
+ "title": "Type 0 CIDSystemInfo",
818
+ "desc": "UA1:7.21.3.1: A Type 0 font dictionary with encoding other than Identity-H and Identity-V failure condition. ",
819
+ "name": "type0_cid_system_info",
820
+ "type": "bool",
821
+ "value": true
822
+ },
823
+ {
824
+ "title": "Type 2 CIDToGIDMap",
825
+ "desc": "UA1:7.21.3.2: A Type 2 CID font CIDToGIDMap failure condition",
826
+ "name": "type2_cid_to_gid_map",
827
+ "type": "bool",
828
+ "value": true
829
+ },
830
+ {
831
+ "title": "Glyph Widths",
832
+ "desc": "UA1:7.21.5: For one or more glyphs, the glyph width information in the font dictionary and in the embedded font program differ by more than 1/1000 unit",
833
+ "name": "glyph_widths",
834
+ "type": "bool",
835
+ "value": true
836
+ },
837
+ {
838
+ "title": "Reference the .notdef glyph",
839
+ "desc": "UA1:7.21.8: One or more characters used in text showing operators reference the .notdef glyph",
840
+ "name": "notdef_glyph",
841
+ "type": "bool",
842
+ "value": true
843
+ }
844
+ ]
845
+ },
846
+ {
847
+ "title": "Set Charcode Unicode Mapping",
848
+ "desc": "Set the Unicode mapping for a specific charcode",
849
+ "name": "set_unicode_for_charcode",
850
+ "icon": "fontembed",
851
+ "category": "Fonts",
852
+ "keywords": "embedded font, font dictionary, charcode, unicode mapping, missing unicode mapping",
853
+ "params": [
854
+ {
855
+ "title": "Fonts",
856
+ "desc": "Specify the fonts using a ECMAScript regular expression or define them by template font_update",
857
+ "name": "font_names",
858
+ "type": "font",
859
+ "value": ".*",
860
+ "values": [
861
+ {
862
+ "desc": "All fonts",
863
+ "value": ".*"
864
+ },
865
+ {
866
+ "desc": "Fonts missing Unicode mapping",
867
+ "value": {
868
+ "template": {
869
+ "font_update": [
870
+ {
871
+ "statement": "$if",
872
+ "query": {
873
+ "param": [
874
+ "pdf_font"
875
+ ],
876
+ "$and": [
877
+ {
878
+ "$0_missing_unicode": true
879
+ }
880
+ ]
881
+ }
882
+ }
883
+ ]
884
+ }
885
+ }
886
+ }
887
+ ]
888
+ },
889
+ {
890
+ "title": "Charcode Number",
891
+ "desc": "Specify the charcode for which to set the Unicode mapping",
892
+ "name": "charcode",
893
+ "type": "int",
894
+ "value": 0
895
+ },
896
+ {
897
+ "title": "Unicode Value",
898
+ "desc": "Specify the Unicode value to set for the charcode",
899
+ "name": "unicode_value",
900
+ "type": "string",
901
+ "value": ""
902
+ },
903
+ {
904
+ "title": "Overwrite",
905
+ "desc": "Replace existing Unicode mappings if they already exist",
906
+ "name": "overwrite",
907
+ "type": "bool",
908
+ "value": false
909
+ }
910
+ ]
911
+ }, {
912
+ "title": "Fix ID Tree",
913
+ "desc": "Repair the document ID tree to restore valid references for structure elements and tagged content",
914
+ "name": "fix_id_tree",
915
+ "icon": "idtree",
916
+ "category": "Accessibility"
917
+ },
918
+ {
919
+ "title": "Fix Parent Tree",
920
+ "desc": "Fix the parent tree",
921
+ "name": "fix_parent_tree",
922
+ "icon": "structparenttree",
923
+ "category": "Accessibility",
924
+ "keywords": "rebuild structural parent tree"
925
+ },
926
+ {
927
+ "title": "Fix Invalid Elements",
928
+ "desc": "Repair invalid structure elements in the document tag tree",
929
+ "name": "fix_invalid_elements",
930
+ "icon": "cyclone",
931
+ "category": "Accessibility",
932
+ "keywords": "fix invalid structure elements, invalid tags"
933
+ },
934
+ {
935
+ "title": "Create Bookmarks",
936
+ "desc": "Create bookmarks from the tag tree hierarchy",
937
+ "name": "create_bookmarks",
938
+ "icon": "bookmarkauto",
939
+ "category": "Bookmarks",
940
+ "keywords": "create bookmarks from heading tags, generate bookmarks, add bookmarks",
941
+ "params": [
942
+ {
943
+ "title": "Level 1",
944
+ "desc": "Define tag types using a ECMAScript regular expression or specify them by template",
945
+ "name": "tag_1",
946
+ "type": "tag",
947
+ "value": "^H1$"
948
+ },
949
+ {
950
+ "title": "Level 2",
951
+ "desc": "Define the tag that represents second level",
952
+ "name": "tag_2",
953
+ "type": "tag",
954
+ "value": "^H2$"
955
+ },
956
+ {
957
+ "title": "Level 3",
958
+ "desc": "Define the tag that represents third level",
959
+ "name": "tag_3",
960
+ "type": "tag",
961
+ "value": "^H3$"
962
+ },
963
+ {
964
+ "title": "Level 4",
965
+ "desc": "Define the tag that represents fourth level",
966
+ "name": "tag_4",
967
+ "type": "tag",
968
+ "value": "^H4$"
969
+ },
970
+ {
971
+ "title": "Level 5",
972
+ "desc": "Define the tag that represents fifth level",
973
+ "name": "tag_5",
974
+ "type": "tag",
975
+ "value": "^H5$"
976
+ },
977
+ {
978
+ "title": "Level 6",
979
+ "desc": "Define the tag that represents sixth level",
980
+ "name": "tag_6",
981
+ "type": "tag",
982
+ "value": "^H6$"
983
+ },
984
+ {
985
+ "title": "Overwrite",
986
+ "desc": "Replace existing bookmarks if they already exist",
987
+ "name": "overwrite",
988
+ "type": "bool",
989
+ "value": false
990
+ }
991
+ ]
992
+ },
993
+ {
994
+ "title": "Set Content Language",
995
+ "desc": "Set the content language",
996
+ "name": "set_content_language",
997
+ "icon": "language_content",
998
+ "category": "Content",
999
+ "keywords": "no language determined, natural language for text in Alt, ActualText and E attributes cannot be determined",
1000
+ "params": [
1001
+ {
1002
+ "title": "Objects",
1003
+ "desc": "Define the objects by the template object_update",
1004
+ "name": "object_types",
1005
+ "type": "object",
1006
+ "value": ".*",
1007
+ "values": [
1008
+ {
1009
+ "desc": "All page objects",
1010
+ "value": ".*"
1011
+ }
1012
+ ]
1013
+ },
1014
+ {
1015
+ "title": "Language",
1016
+ "desc": "Content language",
1017
+ "name": "lang",
1018
+ "type": "lang",
1019
+ "value": "en-US"
1020
+ },
1021
+ {
1022
+ "title": "Overwrite",
1023
+ "desc": "Replace the current language if it already exists",
1024
+ "name": "overwrite",
1025
+ "type": "bool",
1026
+ "value": false
1027
+ }
1028
+ ]
1029
+ },
1030
+ {
1031
+ "title": "Delete Content",
1032
+ "desc": "Completely remove a content from the PDF",
1033
+ "name": "delete_content",
1034
+ "icon": "delete_forever",
1035
+ "category": "Content",
1036
+ "params": [
1037
+ {
1038
+ "title": "Objects",
1039
+ "desc": "Define the page content objects to be deleted",
1040
+ "name": "object_types",
1041
+ "type": "object",
1042
+ "value": ".*",
1043
+ "values": [
1044
+ {
1045
+ "desc": "All page objects",
1046
+ "value": ".*"
1047
+ },
1048
+ {
1049
+ "desc": "Empty or whitespace only texts",
1050
+ "value": {
1051
+ "template": {
1052
+ "object_update": [
1053
+ {
1054
+ "query": {
1055
+ "$and": [
1056
+ {
1057
+ "$0_text": {
1058
+ "$regex": "^\\s*$"
1059
+ }
1060
+ }
1061
+ ],
1062
+ "param": [
1063
+ "pds_text"
1064
+ ]
1065
+ },
1066
+ "statement": "$if"
1067
+ }
1068
+ ]
1069
+ }
1070
+ }
1071
+ },
1072
+ {
1073
+ "desc": "Untagged content",
1074
+ "value": {
1075
+ "template": {
1076
+ "object_update": [
1077
+ {
1078
+ "query": {
1079
+ "$and": [
1080
+ {
1081
+ "$0_mcid": "-1"
1082
+ },
1083
+ {
1084
+ "$0_artifact": "false"
1085
+ }
1086
+ ],
1087
+ "param": [
1088
+ "pds_object"
1089
+ ]
1090
+ },
1091
+ "statement": "$if"
1092
+ }
1093
+ ]
1094
+ }
1095
+ }
1096
+ },
1097
+ {
1098
+ "desc": "Content in the bounding box",
1099
+ "value": {
1100
+ "template": {
1101
+ "object_update": [
1102
+ {
1103
+ "query": {
1104
+ "$and": [
1105
+ {
1106
+ "$0_left": {
1107
+ "$gte": "50"
1108
+ }
1109
+ },
1110
+ {
1111
+ "$0_bottom": {
1112
+ "$gte": "150"
1113
+ }
1114
+ },
1115
+ {
1116
+ "$0_right": {
1117
+ "$lte": "100"
1118
+ }
1119
+ },
1120
+ {
1121
+ "$0_top": {
1122
+ "$lte": "250"
1123
+ }
1124
+ }
1125
+ ],
1126
+ "param": [
1127
+ "pds_object"
1128
+ ]
1129
+ },
1130
+ "statement": "$if"
1131
+ }
1132
+ ]
1133
+ }
1134
+ }
1135
+ }
1136
+ ]
1137
+ }
1138
+ ]
1139
+ },
1140
+ {
1141
+ "title": "Artifact Content",
1142
+ "desc": "Mark defined content as an artifact",
1143
+ "name": "artifact_content",
1144
+ "icon": "markartifacts",
1145
+ "category": "Content",
1146
+ "keywords": "non-tagged content, not tagged, decorative, non-relevant, artifacted marked content, decorative content, running headers and footers, background images",
1147
+ "params": [
1148
+ {
1149
+ "title": "Objects",
1150
+ "desc": "Specify the objects using the object_update template",
1151
+ "name": "object_types",
1152
+ "type": "object",
1153
+ "values": [
1154
+ {
1155
+ "desc": "All page objects",
1156
+ "value": ".*"
1157
+ },
1158
+ {
1159
+ "desc": "All path objects",
1160
+ "value": "^pds_path$"
1161
+ },
1162
+ {
1163
+ "desc": "Untagged content",
1164
+ "value": {
1165
+ "template": {
1166
+ "object_update": [
1167
+ {
1168
+ "query": {
1169
+ "$and": [
1170
+ {
1171
+ "$0_artifact": "false"
1172
+ },
1173
+ {
1174
+ "$0_mcid": "-1"
1175
+ }
1176
+ ],
1177
+ "param": [
1178
+ "pds_object"
1179
+ ]
1180
+ },
1181
+ "statement": "$if"
1182
+ }
1183
+ ]
1184
+ }
1185
+ }
1186
+ },
1187
+ {
1188
+ "desc": "Empty or whitespace only texts",
1189
+ "value": {
1190
+ "template": {
1191
+ "object_update": [
1192
+ {
1193
+ "query": {
1194
+ "$and": [
1195
+ {
1196
+ "$0_text": {
1197
+ "$regex": "^\\s*$"
1198
+ }
1199
+ }
1200
+ ],
1201
+ "param": [
1202
+ "pds_text"
1203
+ ]
1204
+ },
1205
+ "statement": "$if"
1206
+ }
1207
+ ]
1208
+ }
1209
+ }
1210
+ },
1211
+ {
1212
+ "desc": "TOC Leaders",
1213
+ "value": {
1214
+ "template": {
1215
+ "object_update": [
1216
+ {
1217
+ "query": {
1218
+ "$and": [
1219
+ {
1220
+ "$0_text": {
1221
+ "$regex": "^[.\\-_ ]{2,}$"
1222
+ }
1223
+ }
1224
+ ],
1225
+ "param": [
1226
+ "pds_text"
1227
+ ]
1228
+ },
1229
+ "statement": "$if"
1230
+ }
1231
+ ]
1232
+ }
1233
+ }
1234
+ },
1235
+ {
1236
+ "desc": "Content in header area",
1237
+ "value": {
1238
+ "template": {
1239
+ "object_update": [
1240
+ {
1241
+ "query": {
1242
+ "$and": [
1243
+ {
1244
+ "$0_bottom": {
1245
+ "$gt": "700"
1246
+ }
1247
+ }
1248
+ ],
1249
+ "param": [
1250
+ "pds_object"
1251
+ ]
1252
+ },
1253
+ "statement": "$if"
1254
+ }
1255
+ ]
1256
+ }
1257
+ }
1258
+ },
1259
+ {
1260
+ "desc": "Content in footer area",
1261
+ "value": {
1262
+ "template": {
1263
+ "object_update": [
1264
+ {
1265
+ "query": {
1266
+ "$and": [
1267
+ {
1268
+ "$0_top": {
1269
+ "$lt": "100"
1270
+ }
1271
+ }
1272
+ ],
1273
+ "param": [
1274
+ "pds_object"
1275
+ ]
1276
+ },
1277
+ "statement": "$if"
1278
+ }
1279
+ ]
1280
+ }
1281
+ }
1282
+ },
1283
+ {
1284
+ "desc": "Watermark",
1285
+ "value": {
1286
+ "template": {
1287
+ "object_update": [
1288
+ {
1289
+ "query": {
1290
+ "$and": [
1291
+ {
1292
+ "$0_font_size": {
1293
+ "$gte": "40"
1294
+ }
1295
+ }
1296
+ ],
1297
+ "param": [
1298
+ "pds_object"
1299
+ ]
1300
+ },
1301
+ "statement": "$if"
1302
+ }
1303
+ ]
1304
+ }
1305
+ }
1306
+ }
1307
+ ],
1308
+ "value": {
1309
+ "template": {
1310
+ "object_update": [
1311
+ {
1312
+ "query": {
1313
+ "$and": [
1314
+ {
1315
+ "$0_artifact": "false"
1316
+ },
1317
+ {
1318
+ "$0_mcid": "-1"
1319
+ }
1320
+ ],
1321
+ "param": [
1322
+ "pds_object"
1323
+ ]
1324
+ },
1325
+ "statement": "$if"
1326
+ }
1327
+ ]
1328
+ }
1329
+ }
1330
+ },
1331
+ {
1332
+ "title": "Mark as",
1333
+ "desc": "Mark the content as an artifact, header, or footer",
1334
+ "name": "artifact_type",
1335
+ "type": "int",
1336
+ "flags": 1,
1337
+ "set": [
1338
+ {
1339
+ "desc": "Artifact",
1340
+ "value": 0
1341
+ },
1342
+ {
1343
+ "desc": "Header",
1344
+ "value": 1
1345
+ },
1346
+ {
1347
+ "desc": "Footer",
1348
+ "value": 2
1349
+ }
1350
+ ],
1351
+ "value": 0
1352
+ }
1353
+ ]
1354
+ },
1355
+ {
1356
+ "title": "Flatten Form XObjects",
1357
+ "desc": "Flatten Form XObjects",
1358
+ "name": "flatten_xobject",
1359
+ "icon": "flatten",
1360
+ "category": "Content",
1361
+ "params": [
1362
+ {
1363
+ "title": "Objects",
1364
+ "desc": "Define the objects by the template object_update",
1365
+ "name": "object_types",
1366
+ "type": "object",
1367
+ "value": "^pds_form$",
1368
+ "values": [
1369
+ {
1370
+ "desc": "All Form XObjects",
1371
+ "value": "^pds_form$"
1372
+ },
1373
+ {
1374
+ "desc": "Only Form XObjects without transparency",
1375
+ "value": {
1376
+ "template": {
1377
+ "object_update": [
1378
+ {
1379
+ "query": {
1380
+ "$and": [
1381
+ {
1382
+ "$0_has_transparency": "false"
1383
+ }
1384
+ ],
1385
+ "param": [
1386
+ "pds_form"
1387
+ ]
1388
+ },
1389
+ "statement": "$if"
1390
+ }
1391
+ ]
1392
+ }
1393
+ }
1394
+ }
1395
+ ]
1396
+ }
1397
+ ]
1398
+ },
1399
+ {
1400
+ "title": "Clone Form XObjects",
1401
+ "desc": "Clone Form XObjects",
1402
+ "name": "clone_xobject",
1403
+ "icon": "clonexobject",
1404
+ "category": "Content",
1405
+ "keywords": "transparency, copy Form XObject",
1406
+ "params": [
1407
+ {
1408
+ "title": "Objects",
1409
+ "desc": "Define the objects by the template object_update",
1410
+ "name": "object_types",
1411
+ "type": "object",
1412
+ "value": "^pds_form$",
1413
+ "values": [
1414
+ {
1415
+ "desc": "All Form XObjects",
1416
+ "value": "^pds_form$"
1417
+ }
1418
+ ]
1419
+ }
1420
+ ]
1421
+ },
1422
+ {
1423
+ "title": "Fix Content Marks",
1424
+ "name": "remove_content_marks",
1425
+ "icon": "clean",
1426
+ "desc": "Clean up marked content on page objects and resolve conflicts between artifact marking and tagged content. Optionally updates the linked structure tag.",
1427
+ "category": "Content",
1428
+ "keywords": "marked content container, artifact present inside tagged content, marked-content sequence, delete the artifact-tag, tagged content present inside an artifact, artifacted marked content, page body, fix content marks",
1429
+ "params": [
1430
+ {
1431
+ "title": "Objects",
1432
+ "desc": "Define the objects by the template object_update",
1433
+ "name": "object_types",
1434
+ "type": "object",
1435
+ "value": ".*",
1436
+ "values": [
1437
+ {
1438
+ "desc": "All marked content containers",
1439
+ "value": ".*"
1440
+ },
1441
+ {
1442
+ "desc": "Marked content container with an MCID",
1443
+ "value": {
1444
+ "template": {
1445
+ "object_update": [
1446
+ {
1447
+ "query": {
1448
+ "$and": [
1449
+ {
1450
+ "$0_mcid": {
1451
+ "$ne": "-1"
1452
+ }
1453
+ }
1454
+ ],
1455
+ "param": [
1456
+ "pds_object"
1457
+ ]
1458
+ },
1459
+ "statement": "$if"
1460
+ }
1461
+ ]
1462
+ }
1463
+ }
1464
+ },
1465
+ {
1466
+ "desc": "Marked content container with an Artifact",
1467
+ "value": {
1468
+ "template": {
1469
+ "object_update": [
1470
+ {
1471
+ "query": {
1472
+ "$and": [
1473
+ {
1474
+ "$0_artifact": "true"
1475
+ }
1476
+ ],
1477
+ "param": [
1478
+ "pds_object"
1479
+ ]
1480
+ },
1481
+ "statement": "$if"
1482
+ }
1483
+ ]
1484
+ }
1485
+ }
1486
+ },
1487
+ {
1488
+ "desc": "Marked content container with both MCID and Artifact",
1489
+ "value": {
1490
+ "template": {
1491
+ "object_update": [
1492
+ {
1493
+ "query": {
1494
+ "$and": [
1495
+ {
1496
+ "$0_artifact": "true"
1497
+ },
1498
+ {
1499
+ "$0_mcid": {
1500
+ "$ne": "-1"
1501
+ }
1502
+ }
1503
+ ],
1504
+ "param": [
1505
+ "pds_object"
1506
+ ]
1507
+ },
1508
+ "statement": "$if"
1509
+ }
1510
+ ]
1511
+ }
1512
+ }
1513
+ }
1514
+ ]
1515
+ },
1516
+ {
1517
+ "title": "Cleanup",
1518
+ "desc": "Specify types of marked content to remove",
1519
+ "name": "flags",
1520
+ "flags": 1,
1521
+ "set": [
1522
+ {
1523
+ "desc": "Remove Invalid MCID",
1524
+ "value": 8
1525
+ },
1526
+ {
1527
+ "desc": "Remove Custom Content Mark",
1528
+ "value": 4
1529
+ },
1530
+ {
1531
+ "desc": "Remove MCID",
1532
+ "value": 1
1533
+ },
1534
+ {
1535
+ "desc": "Remove Artifact",
1536
+ "value": 2
1537
+ }
1538
+ ],
1539
+ "type": "flag",
1540
+ "value": 8
1541
+ },
1542
+ {
1543
+ "title": "Fix conflicted MCIDs",
1544
+ "desc": "Choose whether conflicting artifact and tagged content should remain tagged real content or become an artifact",
1545
+ "name": "content_mode",
1546
+ "type": "string",
1547
+ "flags": 1,
1548
+ "set": [
1549
+ {
1550
+ "desc": "None",
1551
+ "value": "none"
1552
+ },
1553
+ {
1554
+ "desc": "Keep as tagged content",
1555
+ "value": "tagged"
1556
+ },
1557
+ {
1558
+ "desc": "Mark as artifact",
1559
+ "value": "artifact"
1560
+ }
1561
+ ],
1562
+ "value": "none"
1563
+ },
1564
+ {
1565
+ "title": "Sync content tag names",
1566
+ "desc": "Rename marked content tag names to match the linked structure tag type (for example content mark H1 when the structure tag is P)",
1567
+ "name": "sync_tag_names",
1568
+ "type": "bool",
1569
+ "value": false
1570
+ }
1571
+ ]
1572
+ },
1573
+ {
1574
+ "title": "Set Content Color",
1575
+ "name": "set_content_color",
1576
+ "icon": "color_lens",
1577
+ "desc": "Change the fill and/or stroke color of specified content objects",
1578
+ "category": "Content",
1579
+ "keywords": "change color, fill color, stroke color, contrast",
1580
+ "params": [
1581
+ {
1582
+ "title": "Objects",
1583
+ "desc": "Define the page objects using the object_update template",
1584
+ "name": "object_types",
1585
+ "type": "object",
1586
+ "value": ".*",
1587
+ "values": [
1588
+ {
1589
+ "desc": "All page objects",
1590
+ "value": ".*"
1591
+ },
1592
+ {
1593
+ "desc": "Objects with specific colors",
1594
+ "value": {
1595
+ "template": {
1596
+ "object_update": [
1597
+ {
1598
+ "query": {
1599
+ "$or": [
1600
+ {
1601
+ "$0_fill_color": [
1602
+ "255",
1603
+ "0",
1604
+ "0"
1605
+ ]
1606
+ },
1607
+ {
1608
+ "$0_stroke_color": [
1609
+ "255",
1610
+ "0",
1611
+ "0"
1612
+ ]
1613
+ }
1614
+ ],
1615
+ "param": [
1616
+ "pds_object"
1617
+ ]
1618
+ },
1619
+ "statement": "$if"
1620
+ }
1621
+ ]
1622
+ }
1623
+ }
1624
+ }
1625
+ ]
1626
+ },
1627
+ {
1628
+ "title": "Fill Color",
1629
+ "desc": "Specify a new fill color: RGB with each component 0-255 (e.g. RGB(127,255,0)), or CMYK with each component 0-100 (percent-like, e.g. CMYK(25,84,50,100)). Leave empty to keep the current color unchanged",
1630
+ "name": "fill_color",
1631
+ "type": "string",
1632
+ "value": "RGB(0,0,0)"
1633
+ },
1634
+ {
1635
+ "title": "Stroke Color",
1636
+ "desc": "Specify a new stroke color: RGB with each component 0-255 (e.g. RGB(127,255,0)), or CMYK with each component 0-100 (percent-like, e.g. CMYK(25,84,50,100)). Leave empty to keep the current color unchanged",
1637
+ "name": "stroke_color",
1638
+ "type": "string",
1639
+ "value": "RGB(0,0,0)"
1640
+ }
1641
+ ]
1642
+ },
1643
+ {
1644
+ "title": "Split Content",
1645
+ "name": "split_content",
1646
+ "icon": "split_scene",
1647
+ "desc": "Split specified content objects",
1648
+ "category": "Content",
1649
+ "keywords": "split content, divide content, break content, separate content",
1650
+ "params": [
1651
+ {
1652
+ "title": "Objects",
1653
+ "desc": "Define the page objects using the object_update template",
1654
+ "name": "object_types",
1655
+ "type": "object",
1656
+ "value": ".*",
1657
+ "values": [
1658
+ {
1659
+ "desc": "All page objects",
1660
+ "value": ".*"
1661
+ },
1662
+ {
1663
+ "desc": "Objects with specific font and text",
1664
+ "value": {
1665
+ "template": {
1666
+ "object_update": [
1667
+ {
1668
+ "query": {
1669
+ "$and": [
1670
+ {
1671
+ "$0_font_name": {
1672
+ "$regex": "^Arial"
1673
+ }
1674
+ },
1675
+ {
1676
+ "$0_font_size": "10"
1677
+ },
1678
+ {
1679
+ "$0_text": {
1680
+ "$regex": "^1 Note"
1681
+ }
1682
+ }
1683
+ ],
1684
+ "param": [
1685
+ "pds_object"
1686
+ ]
1687
+ },
1688
+ "statement": "$if"
1689
+ }
1690
+ ]
1691
+ }
1692
+ }
1693
+ }
1694
+ ]
1695
+ },
1696
+ {
1697
+ "title": "Index",
1698
+ "desc": "Specify an index of the substring. Negative value indicates the last character and oposite direction (-1 is the last character, -2 is the second last, etc.)",
1699
+ "name": "index",
1700
+ "type": "int",
1701
+ "value": "0",
1702
+ "disable": "(text!=\"\")"
1703
+ },
1704
+ {
1705
+ "title": "Length",
1706
+ "desc": "Specify the number of character to be included in the substring. 0 indicates all characters from the index to the end/start. It's ignored if text is specified",
1707
+ "name": "length",
1708
+ "type": "int",
1709
+ "value": "0",
1710
+ "disable": "(text!=\"\")"
1711
+ },
1712
+ {
1713
+ "title": "Text",
1714
+ "desc": "Specify the substring of characters (regex) to be included in the substring. Leave empty to ignore",
1715
+ "name": "text",
1716
+ "type": "string",
1717
+ "value": ""
1718
+ }
1719
+ ]
1720
+ },
1721
+ {
1722
+ "title": "Set Tab Order",
1723
+ "desc": "Set the tab order key for every page. Every page containing an annotation must have the Tabs key set to S",
1724
+ "name": "set_tabs_key",
1725
+ "icon": "taborder",
1726
+ "category": "Annotations",
1727
+ "keywords": "Tabs key",
1728
+ "params": [
1729
+ {
1730
+ "title": "Tabs Key",
1731
+ "desc": "Specify the tab order key",
1732
+ "name": "tabs_key",
1733
+ "type": "string",
1734
+ "value": "S"
1735
+ },
1736
+ {
1737
+ "title": "Overwrite",
1738
+ "desc": "Replace the current tab order key if it already exists",
1739
+ "name": "overwrite",
1740
+ "type": "bool",
1741
+ "value": true
1742
+ }
1743
+ ]
1744
+ },
1745
+ {
1746
+ "title": "Tag Annotations",
1747
+ "desc": "Tag untagged annotations by placing them in the closest matching tag",
1748
+ "name": "tag_annot",
1749
+ "icon": "tagempty",
1750
+ "category": "Annotations",
1751
+ "params": [
1752
+ {
1753
+ "title": "Annotations",
1754
+ "desc": "Specify annotation types using a ECMAScript regular expression or define them by template annot_update",
1755
+ "name": "annot_types",
1756
+ "type": "annot",
1757
+ "value": "^(?!.*Popup).*$",
1758
+ "values": [
1759
+ {
1760
+ "desc": "All annotations except Popup",
1761
+ "value": "^(?!.*Popup).*$"
1762
+ },
1763
+ {
1764
+ "desc": "All except untagged, hidden and invisible",
1765
+ "value": {
1766
+ "template": {
1767
+ "annot_update": [
1768
+ {
1769
+ "query": {
1770
+ "$and": [
1771
+ {
1772
+ "$0_annot_type": {
1773
+ "$regex": "^(?!Popup$|TrapNet$|FileAttachment$|Redact$).*"
1774
+ }
1775
+ },
1776
+ {
1777
+ "$0_tag_type": ""
1778
+ },
1779
+ {
1780
+ "$not": [
1781
+ {
1782
+ "$0_annot_flag": {
1783
+ "$regex": "invisible"
1784
+ }
1785
+ }
1786
+ ]
1787
+ },
1788
+ {
1789
+ "$not": [
1790
+ {
1791
+ "$0_annot_flag": {
1792
+ "$regex": "hidden"
1793
+ }
1794
+ }
1795
+ ]
1796
+ }
1797
+ ],
1798
+ "param": [
1799
+ "pdf_annot"
1800
+ ]
1801
+ },
1802
+ "statement": "$if"
1803
+ }
1804
+ ]
1805
+ }
1806
+ }
1807
+ },
1808
+ {
1809
+ "desc": "All except hidden and invisible",
1810
+ "value": {
1811
+ "template": {
1812
+ "annot_update": [
1813
+ {
1814
+ "query": {
1815
+ "$and": [
1816
+ {
1817
+ "$0_annot_type": {
1818
+ "$regex": "^(?!Popup$|TrapNet$|FileAttachment$|Redact$).*"
1819
+ }
1820
+ },
1821
+ {
1822
+ "$not": [
1823
+ {
1824
+ "$0_annot_flag": {
1825
+ "$regex": "invisible"
1826
+ }
1827
+ }
1828
+ ]
1829
+ },
1830
+ {
1831
+ "$not": [
1832
+ {
1833
+ "$0_annot_flag": {
1834
+ "$regex": "hidden"
1835
+ }
1836
+ }
1837
+ ]
1838
+ }
1839
+ ],
1840
+ "param": [
1841
+ "pdf_annot"
1842
+ ]
1843
+ },
1844
+ "statement": "$if"
1845
+ }
1846
+ ]
1847
+ }
1848
+ }
1849
+ }
1850
+ ]
1851
+ }
1852
+ ]
1853
+ },
1854
+ {
1855
+ "title": "Delete Tags",
1856
+ "desc": "Delete defined tags",
1857
+ "name": "delete_tags",
1858
+ "icon": "bin",
1859
+ "category": "Tags",
1860
+ "params": [
1861
+ {
1862
+ "title": "Tags",
1863
+ "desc": "Specify the tags using a ECMAScript regular expression or define them by template tag_update",
1864
+ "name": "tag_names",
1865
+ "type": "tag",
1866
+ "value": ".*",
1867
+ "values": [
1868
+ {
1869
+ "desc": "All tags",
1870
+ "value": ".*"
1871
+ },
1872
+ {
1873
+ "desc": "Empty tags without content",
1874
+ "value": {
1875
+ "template": {
1876
+ "tag_update": [
1877
+ {
1878
+ "query": {
1879
+ "$and": [
1880
+ {
1881
+ "$0_tag_type": {
1882
+ "$regex": "^(?!H$|H\\d$|TH$|TD$).*"
1883
+ }
1884
+ },
1885
+ {
1886
+ "$0_has_content": "false"
1887
+ }
1888
+ ],
1889
+ "param": [
1890
+ "pds_struct_elem"
1891
+ ]
1892
+ },
1893
+ "statement": "$if"
1894
+ }
1895
+ ]
1896
+ }
1897
+ }
1898
+ },
1899
+ {
1900
+ "desc": "Empty tags without children",
1901
+ "value": {
1902
+ "template": {
1903
+ "tag_update": [
1904
+ {
1905
+ "query": {
1906
+ "$and": [
1907
+ {
1908
+ "$0_tag_type": {
1909
+ "$regex": "^(?!H$|H\\d$|TH$|TD$).*"
1910
+ }
1911
+ },
1912
+ {
1913
+ "$0_children_num": "0"
1914
+ }
1915
+ ],
1916
+ "param": [
1917
+ "pds_struct_elem"
1918
+ ]
1919
+ },
1920
+ "statement": "$if"
1921
+ }
1922
+ ]
1923
+ }
1924
+ }
1925
+ },
1926
+ {
1927
+ "desc": "Tags with empty spaces",
1928
+ "value": {
1929
+ "template": {
1930
+ "tag_update": [
1931
+ {
1932
+ "query": {
1933
+ "$and": [
1934
+ {
1935
+ "$0_text": {
1936
+ "$regex": "^ +$"
1937
+ }
1938
+ }
1939
+ ],
1940
+ "param": [
1941
+ "pds_struct_elem"
1942
+ ]
1943
+ },
1944
+ "statement": "$if"
1945
+ }
1946
+ ]
1947
+ }
1948
+ }
1949
+ },
1950
+ {
1951
+ "desc": "Tags in header area",
1952
+ "value": {
1953
+ "template": {
1954
+ "tag_update": [
1955
+ {
1956
+ "query": {
1957
+ "$and": [
1958
+ {
1959
+ "$0_bottom": {
1960
+ "$gt": "700"
1961
+ }
1962
+ }
1963
+ ],
1964
+ "param": [
1965
+ "pds_struct_elem"
1966
+ ]
1967
+ },
1968
+ "statement": "$if"
1969
+ }
1970
+ ]
1971
+ }
1972
+ }
1973
+ },
1974
+ {
1975
+ "desc": "Tags in footer area",
1976
+ "value": {
1977
+ "template": {
1978
+ "tag_update": [
1979
+ {
1980
+ "query": {
1981
+ "$and": [
1982
+ {
1983
+ "$0_top": {
1984
+ "$lt": "100"
1985
+ }
1986
+ }
1987
+ ],
1988
+ "param": [
1989
+ "pds_struct_elem"
1990
+ ]
1991
+ },
1992
+ "statement": "$if"
1993
+ }
1994
+ ]
1995
+ }
1996
+ }
1997
+ }
1998
+ ]
1999
+ },
2000
+ {
2001
+ "title": "Content",
2002
+ "desc": "Handle the content of deleted tags",
2003
+ "name": "tag_content",
2004
+ "type": "string",
2005
+ "flags": 1,
2006
+ "set": [
2007
+ {
2008
+ "desc": "Leave content untagged",
2009
+ "value": "none"
2010
+ },
2011
+ {
2012
+ "desc": "Move nested tags to the parent tag",
2013
+ "value": "move"
2014
+ },
2015
+ {
2016
+ "desc": "Mark content as an artifact",
2017
+ "value": "artifact"
2018
+ }
2019
+ ],
2020
+ "value": "none"
2021
+ }
2022
+ ]
2023
+ },
2024
+ {
2025
+ "title": "Move Tags",
2026
+ "desc": "Move defined tags out of the parent tag",
2027
+ "name": "move_tags",
2028
+ "icon": "move_out",
2029
+ "category": "Tags",
2030
+ "params": [
2031
+ {
2032
+ "title": "Tags",
2033
+ "desc": "Specify the tags using a ECMAScript regular expression or define them by template tag_update",
2034
+ "name": "tag_names",
2035
+ "type": "tag",
2036
+ "value": ".*",
2037
+ "values": [
2038
+ {
2039
+ "desc": "All tags",
2040
+ "value": ".*"
2041
+ },
2042
+ {
2043
+ "desc": "Move Figure tags out of the parent P tags",
2044
+ "value": {
2045
+ "template": {
2046
+ "tag_update": [
2047
+ {
2048
+ "query": {
2049
+ "$and": [
2050
+ {
2051
+ "$0_tag_type": "Figure"
2052
+ },
2053
+ {
2054
+ "$0_parent_tag_type": "P"
2055
+ }
2056
+ ],
2057
+ "param": [
2058
+ "pds_struct_elem"
2059
+ ]
2060
+ },
2061
+ "statement": "$if"
2062
+ }
2063
+ ]
2064
+ }
2065
+ }
2066
+ }
2067
+ ]
2068
+ },
2069
+ {
2070
+ "title": "Position",
2071
+ "desc": "Define a new position of the tag",
2072
+ "name": "tag_pos",
2073
+ "type": "string",
2074
+ "flags": 1,
2075
+ "set": [
2076
+ {
2077
+ "desc": "Move tag out of the parent",
2078
+ "value": "move_up"
2079
+ }
2080
+ ],
2081
+ "value": "move_up"
2082
+ }
2083
+ ]
2084
+ },
2085
+ {
2086
+ "title": "Rename Tags",
2087
+ "desc": "Rename tags",
2088
+ "name": "rename_tags",
2089
+ "icon": "renametags",
2090
+ "category": "Tags",
2091
+ "params": [
2092
+ {
2093
+ "title": "Tags",
2094
+ "desc": "Specify the tags using a ECMAScript regular expression or define them by template tag_update",
2095
+ "name": "tag_names",
2096
+ "type": "tag",
2097
+ "value": ".*"
2098
+ },
2099
+ {
2100
+ "title": "Replace with",
2101
+ "desc": "Specify a new tag name",
2102
+ "name": "tag_name",
2103
+ "type": "string",
2104
+ "value": "P"
2105
+ }
2106
+ ]
2107
+ },
2108
+ {
2109
+ "title": "Clone Tag XObjects",
2110
+ "desc": "Clone Form XObjects in tags",
2111
+ "name": "clone_tag_xobject",
2112
+ "icon": "clonexobject",
2113
+ "category": "Tags"
2114
+ },
2115
+ {
2116
+ "title": "Set Tag Language",
2117
+ "desc": "Set the tag language",
2118
+ "name": "set_tag_language",
2119
+ "icon": "language_tag",
2120
+ "category": "Tags",
2121
+ "params": [
2122
+ {
2123
+ "title": "Tags",
2124
+ "desc": "Specify the tags using a ECMAScript regular expression or define them by template tag_update",
2125
+ "name": "tag_names",
2126
+ "type": "tag",
2127
+ "value": ".*",
2128
+ "values": [
2129
+ {
2130
+ "desc": "All tags",
2131
+ "value": ".*"
2132
+ }
2133
+ ]
2134
+ },
2135
+ {
2136
+ "title": "Language",
2137
+ "desc": "Tag language",
2138
+ "name": "lang",
2139
+ "type": "lang",
2140
+ "value": "en-US"
2141
+ },
2142
+ {
2143
+ "title": "Overwrite",
2144
+ "desc": "Replace the current language if it already exists",
2145
+ "name": "overwrite",
2146
+ "type": "bool",
2147
+ "value": false
2148
+ }
2149
+ ]
2150
+ },
2151
+ {
2152
+ "title": "Set Tag ID",
2153
+ "desc": "Generate a unique ID key for specific tags, such as Note tags required in PDF/UA-1",
2154
+ "name": "set_tag_id",
2155
+ "icon": "tagid",
2156
+ "category": "Tags",
2157
+ "keywords": "ID missing in Note structure element, add Note IDs, unique IDs, ID key of the Note tag is not present, ID key of the Note tag is non-unique",
2158
+ "params": [
2159
+ {
2160
+ "title": "Tags",
2161
+ "desc": "Specify the tags using a ECMAScript regular expression or define them by template tag_update",
2162
+ "name": "tag_names",
2163
+ "type": "tag",
2164
+ "value": "^Note$|^TH$",
2165
+ "values": [
2166
+ {
2167
+ "desc": "All tags",
2168
+ "value": ".*"
2169
+ },
2170
+ {
2171
+ "desc": "Note tags",
2172
+ "value": "^Note$"
2173
+ },
2174
+ {
2175
+ "desc": "Note and TH tags",
2176
+ "value": "^Note$|^TH$"
2177
+ }
2178
+ ]
2179
+ },
2180
+ {
2181
+ "title": "Overwrite",
2182
+ "desc": "Replace the current tag ID if it already exists",
2183
+ "name": "overwrite",
2184
+ "type": "bool",
2185
+ "value": false
2186
+ }
2187
+ ]
2188
+ },
2189
+ {
2190
+ "title": "Fix Table Tag",
2191
+ "desc": "Resolve structural errors in tables to ensure PDF/UA compliance, including span consistency and invalid nesting",
2192
+ "name": "fix_table_tag",
2193
+ "icon": "fix_table",
2194
+ "category": "Table",
2195
+ "keywords": "table, headers, data cell, TH, TD, RowSpan, row span, ColSpan, col span, column span, table structure, associated subcells, Scope attribute, Headers attributes",
2196
+ "params": [
2197
+ {
2198
+ "title": "Tags",
2199
+ "desc": "Specify the table tags using a ECMAScript regular expression or define them by template",
2200
+ "name": "tag_names",
2201
+ "type": "tag",
2202
+ "value": "^Table$"
2203
+ },
2204
+ {
2205
+ "title": "Flatten Table Structure",
2206
+ "desc": "Convert the table hierarchy (Table->Div, TR->Div) to flatten incorrectly formatted tables",
2207
+ "name": "flatten_table",
2208
+ "type": "bool",
2209
+ "value": false
2210
+ },
2211
+ {
2212
+ "title": "Fix Cell Spans",
2213
+ "desc": "Normalize RowSpan and ColSpan attributes to ensure that all rows contain the same number of columns",
2214
+ "name": "fix_table_spans",
2215
+ "type": "bool",
2216
+ "value": false,
2217
+ "disable": "(flatten_table==true)"
2218
+ },
2219
+ {
2220
+ "title": "Add Missing Headers",
2221
+ "desc": "Generate missing header cells to ensure proper table structure",
2222
+ "name": "fix_table_headers",
2223
+ "type": "bool",
2224
+ "value": false,
2225
+ "disable": "(flatten_table==true)"
2226
+ },
2227
+ {
2228
+ "title": "Fix Invalid Nesting",
2229
+ "desc": "Resolve issues with disallowed tags nested within table",
2230
+ "name": "fix_nested",
2231
+ "type": "string",
2232
+ "flags": 1,
2233
+ "set": [
2234
+ {
2235
+ "desc": "Do not fix",
2236
+ "value": "none"
2237
+ },
2238
+ {
2239
+ "desc": "Move invalid nested tags outside the Table element",
2240
+ "value": "move"
2241
+ },
2242
+ {
2243
+ "desc": "Convert invalid nested tags to artifacts",
2244
+ "value": "artifact"
2245
+ }
2246
+ ],
2247
+ "value": "none",
2248
+ "disable": "(flatten_table==true)"
2249
+ }
2250
+ ]
2251
+ },
2252
+ {
2253
+ "title": "Set Table Cells Attributes",
2254
+ "desc": "Fix table header and data cells",
2255
+ "name": "set_table_header",
2256
+ "icon": "setheader",
2257
+ "category": "Table",
2258
+ "keywords": "table headers, table data cell, TH tag, TD tag, RowSpan, row span, ColSpan, col span, column span, table structure, associated subcells, Scope attribute, Headers attributes",
2259
+ "params": [
2260
+ {
2261
+ "title": "Tags",
2262
+ "desc": "Specify the table cell tags using a ECMAScript regular expression or define them by template tag_update",
2263
+ "name": "tag_names",
2264
+ "type": "tag",
2265
+ "value": "^TD$",
2266
+ "values": [
2267
+ {
2268
+ "desc": "TD cells with specific font properties",
2269
+ "value": {
2270
+ "template": {
2271
+ "tag_update": [
2272
+ {
2273
+ "query": {
2274
+ "$and": [
2275
+ {
2276
+ "$0_tag_type": "TD"
2277
+ },
2278
+ {
2279
+ "$0_font_name": {
2280
+ "$regex": "Arial"
2281
+ }
2282
+ },
2283
+ {
2284
+ "$0_font_size": "10"
2285
+ }
2286
+ ],
2287
+ "param": [
2288
+ "pds_struct_elem"
2289
+ ]
2290
+ },
2291
+ "statement": "$if"
2292
+ }
2293
+ ]
2294
+ }
2295
+ }
2296
+ },
2297
+ {
2298
+ "desc": "Cells in the first table row",
2299
+ "value": {
2300
+ "template": {
2301
+ "tag_update": [
2302
+ {
2303
+ "query": {
2304
+ "$and": [
2305
+ {
2306
+ "$0_tag_type": {
2307
+ "$regex": "TD|TH"
2308
+ }
2309
+ },
2310
+ {
2311
+ "$0_cell_row": "1"
2312
+ }
2313
+ ],
2314
+ "param": [
2315
+ "pds_struct_elem"
2316
+ ]
2317
+ },
2318
+ "statement": "$if"
2319
+ }
2320
+ ]
2321
+ }
2322
+ }
2323
+ },
2324
+ {
2325
+ "desc": "Cells in the first table column",
2326
+ "value": {
2327
+ "template": {
2328
+ "tag_update": [
2329
+ {
2330
+ "query": {
2331
+ "$and": [
2332
+ {
2333
+ "$0_tag_type": {
2334
+ "$regex": "TD|TH"
2335
+ }
2336
+ },
2337
+ {
2338
+ "$0_cell_column": "1"
2339
+ }
2340
+ ],
2341
+ "param": [
2342
+ "pds_struct_elem"
2343
+ ]
2344
+ },
2345
+ "statement": "$if"
2346
+ }
2347
+ ]
2348
+ }
2349
+ }
2350
+ }
2351
+ ]
2352
+ },
2353
+ {
2354
+ "title": "Scope",
2355
+ "desc": "Specify whether the header cell applies to a row, column, or both",
2356
+ "name": "scope",
2357
+ "type": "string",
2358
+ "value": "None",
2359
+ "flags": 1,
2360
+ "set": [
2361
+ {
2362
+ "desc": "None",
2363
+ "value": "None"
2364
+ },
2365
+ {
2366
+ "desc": "Row",
2367
+ "value": "Row"
2368
+ },
2369
+ {
2370
+ "desc": "Column",
2371
+ "value": "Column"
2372
+ },
2373
+ {
2374
+ "desc": "Both",
2375
+ "value": "Both"
2376
+ }
2377
+ ]
2378
+ },
2379
+ {
2380
+ "title": "RowSpan",
2381
+ "desc": "Set the row span for the cell. Use -1 to keep the existing RowSpan",
2382
+ "name": "row_span",
2383
+ "type": "int",
2384
+ "value": -1
2385
+ },
2386
+ {
2387
+ "title": "ColSpan",
2388
+ "desc": "Set the column span for the cell. Use -1 to keep the existing ColSpan",
2389
+ "name": "col_span",
2390
+ "type": "int",
2391
+ "value": -1
2392
+ },
2393
+ {
2394
+ "title": "Change to",
2395
+ "desc": "Specify a new tag type (TD or TH) for the cell. Leave empty to retain the existing type",
2396
+ "name": "tag_name",
2397
+ "type": "string",
2398
+ "value": "TH"
2399
+ },
2400
+ {
2401
+ "title": "Overwrite",
2402
+ "desc": "Replace current properties if they already exist",
2403
+ "name": "overwrite",
2404
+ "type": "bool",
2405
+ "value": false
2406
+ }
2407
+ ]
2408
+ },
2409
+ {
2410
+ "title": "Set Tag BBox",
2411
+ "desc": "Calculate the bounding box from the tag content and set it in the Layout attributes",
2412
+ "name": "set_tag_bbox",
2413
+ "icon": "tagbbox",
2414
+ "category": "Tags",
2415
+ "params": [
2416
+ {
2417
+ "title": "Tags",
2418
+ "desc": "Specify the tags using a ECMAScript regular expression or define them by template tag_update",
2419
+ "name": "tag_names",
2420
+ "type": "tag",
2421
+ "value": "^Figure$|^Formula$|^Form$|^Table$",
2422
+ "values": [
2423
+ {
2424
+ "desc": "All tags",
2425
+ "value": ".*"
2426
+ },
2427
+ {
2428
+ "desc": "BBox tags",
2429
+ "value": "^Figure$|^Formula$|^Form$|^Table$"
2430
+ }
2431
+ ]
2432
+ },
2433
+ {
2434
+ "title": "Overwrite",
2435
+ "desc": "Replace the current bounding box if it already exists",
2436
+ "name": "overwrite",
2437
+ "type": "bool",
2438
+ "value": false
2439
+ }
2440
+ ]
2441
+ },
2442
+ {
2443
+ "title": "Set Table Summary",
2444
+ "desc": "Provide a summary of the table. Only applicable to Table tags",
2445
+ "name": "set_table_summary",
2446
+ "icon": "table",
2447
+ "category": "Table",
2448
+ "params": [
2449
+ {
2450
+ "title": "Tags",
2451
+ "desc": "Specify the table tags using a ECMAScript regular expression or define them by template",
2452
+ "name": "tag_names",
2453
+ "type": "tag",
2454
+ "value": "^Table$"
2455
+ },
2456
+ {
2457
+ "title": "Summary",
2458
+ "desc": "Define a source for detecting the summary",
2459
+ "name": "summary_type",
2460
+ "type": "int",
2461
+ "value": 2,
2462
+ "flags": 1,
2463
+ "set": [
2464
+ {
2465
+ "desc": "Define the Custom Summary",
2466
+ "value": 0
2467
+ },
2468
+ {
2469
+ "desc": "Use the associated TH content",
2470
+ "value": 1
2471
+ },
2472
+ {
2473
+ "desc": "Use the associated tag content",
2474
+ "value": 2
2475
+ }
2476
+ ]
2477
+ },
2478
+ {
2479
+ "title": "Custom Summary",
2480
+ "desc": "Enter custom text as the table summary",
2481
+ "name": "custom_text",
2482
+ "type": "string",
2483
+ "value": "Summary",
2484
+ "disable": "(summary_type!=0)"
2485
+ },
2486
+ {
2487
+ "title": "Overwrite",
2488
+ "desc": "Replace the table summary if it already exists",
2489
+ "name": "overwrite",
2490
+ "type": "bool",
2491
+ "value": false
2492
+ }
2493
+ ]
2494
+ },
2495
+ {
2496
+ "title": "Set Alternate Description",
2497
+ "desc": "Set an alternative description for the tag. These text alternatives are crucial for accessibility, helping users with vision impairments understand the content",
2498
+ "name": "set_alt",
2499
+ "icon": "tagalternate",
2500
+ "category": "Tags",
2501
+ "keywords": "alternative text, Alt text, alternate description",
2502
+ "params": [
2503
+ {
2504
+ "title": "Tags",
2505
+ "desc": "Specify the tags using a ECMAScript regular expression or define them by template tag_update",
2506
+ "name": "tag_names",
2507
+ "type": "tag",
2508
+ "value": "^Figure$|^Formula$",
2509
+ "values": [
2510
+ {
2511
+ "desc": "All tags",
2512
+ "value": ".*"
2513
+ },
2514
+ {
2515
+ "desc": "Figure and Formula tags",
2516
+ "value": "^Figure$|^Formula$"
2517
+ },
2518
+ {
2519
+ "desc": "Annotation tags",
2520
+ "value": "^Link$|^Annot$|^Widget$"
2521
+ },
2522
+ {
2523
+ "desc": "Annotation tags without page content",
2524
+ "value": {
2525
+ "template": {
2526
+ "tag_update": [
2527
+ {
2528
+ "query": {
2529
+ "$and": [
2530
+ {
2531
+ "$0_tag_type": {
2532
+ "$regex": "^Link$|^Annot$|^Widget$"
2533
+ }
2534
+ },
2535
+ {
2536
+ "$0_text": {
2537
+ "$regex": "^\\s*$"
2538
+ }
2539
+ }
2540
+ ],
2541
+ "param": [
2542
+ "pds_struct_elem"
2543
+ ]
2544
+ },
2545
+ "statement": "$if"
2546
+ }
2547
+ ]
2548
+ }
2549
+ }
2550
+ },
2551
+ {
2552
+ "desc": "Tags in header area",
2553
+ "value": {
2554
+ "template": {
2555
+ "tag_update": [
2556
+ {
2557
+ "query": {
2558
+ "$and": [
2559
+ {
2560
+ "$0_bottom": {
2561
+ "$gt": "700"
2562
+ }
2563
+ }
2564
+ ],
2565
+ "param": [
2566
+ "pds_struct_elem"
2567
+ ]
2568
+ },
2569
+ "statement": "$if"
2570
+ }
2571
+ ]
2572
+ }
2573
+ }
2574
+ },
2575
+ {
2576
+ "desc": "Tags in footer area",
2577
+ "value": {
2578
+ "template": {
2579
+ "tag_update": [
2580
+ {
2581
+ "query": {
2582
+ "$and": [
2583
+ {
2584
+ "$0_top": {
2585
+ "$lt": "100"
2586
+ }
2587
+ }
2588
+ ],
2589
+ "param": [
2590
+ "pds_struct_elem"
2591
+ ]
2592
+ },
2593
+ "statement": "$if"
2594
+ }
2595
+ ]
2596
+ }
2597
+ }
2598
+ }
2599
+ ]
2600
+ },
2601
+ {
2602
+ "title": "Alternative Description",
2603
+ "desc": "Define a source for detecting the alternative text",
2604
+ "name": "alt_type",
2605
+ "type": "int",
2606
+ "value": 4,
2607
+ "flags": 1,
2608
+ "set": [
2609
+ {
2610
+ "desc": "Define the Custom Alternative text",
2611
+ "value": 0
2612
+ },
2613
+ {
2614
+ "desc": "Use text from the first matching tag above",
2615
+ "value": 1
2616
+ },
2617
+ {
2618
+ "desc": "Use text from the first matching tag below",
2619
+ "value": 2
2620
+ },
2621
+ {
2622
+ "desc": "Use tag text",
2623
+ "value": 3
2624
+ },
2625
+ {
2626
+ "desc": "Use tag text and Contents for annotations",
2627
+ "value": 4
2628
+ }
2629
+ ]
2630
+ },
2631
+ {
2632
+ "title": "Custom Alternative",
2633
+ "desc": "Enter custom text for the alternative description",
2634
+ "name": "custom_text",
2635
+ "type": "string",
2636
+ "value": "Decorative",
2637
+ "disable": "(alt_type!=0)"
2638
+ },
2639
+ {
2640
+ "title": "Use Text from Tag",
2641
+ "desc": "Tag types, pipe-separated (e.g. P|H1|Lbl). Leave empty to use the first tag with text regardless of type. Otherwise use text from the first matching tag for the alternative description.",
2642
+ "name": "description_tag",
2643
+ "type": "string",
2644
+ "value": "",
2645
+ "disable": "(alt_type==0)||(alt_type==4)||(alt_type==5)"
2646
+ },
2647
+ {
2648
+ "title": "Overwrite",
2649
+ "desc": "Replace the alternative description if it already exists",
2650
+ "name": "overwrite",
2651
+ "type": "bool",
2652
+ "value": false
2653
+ }
2654
+ ]
2655
+ },
2656
+ {
2657
+ "title": "Set Actual Text",
2658
+ "desc": "Set a replacement text for the content, providing an equivalent text representation",
2659
+ "name": "set_actual",
2660
+ "icon": "replacetext",
2661
+ "category": "Tags",
2662
+ "params": [
2663
+ {
2664
+ "title": "Tags",
2665
+ "desc": "Specify the tags using a ECMAScript regular expression or define them by template tag_update",
2666
+ "name": "tag_names",
2667
+ "type": "tag",
2668
+ "value": "^Span$"
2669
+ },
2670
+ {
2671
+ "title": "Actual Text",
2672
+ "desc": "Define a source for detecting the replacement text",
2673
+ "name": "actual_type",
2674
+ "type": "int",
2675
+ "value": 0,
2676
+ "flags": 1,
2677
+ "set": [
2678
+ {
2679
+ "desc": "Custom actual text",
2680
+ "value": 0
2681
+ },
2682
+ {
2683
+ "desc": "Use the associated tag content",
2684
+ "value": 1
2685
+ }
2686
+ ]
2687
+ },
2688
+ {
2689
+ "title": "Custom",
2690
+ "desc": "Enter custom actual text as the replacement text",
2691
+ "name": "custom_text",
2692
+ "type": "string",
2693
+ "value": "",
2694
+ "disable": "(actual_type!=0)"
2695
+ },
2696
+ {
2697
+ "title": "Overwrite",
2698
+ "desc": "Replace the actual text if it already exists",
2699
+ "name": "overwrite",
2700
+ "type": "bool",
2701
+ "value": false
2702
+ }
2703
+ ]
2704
+ },
2705
+ {
2706
+ "title": "Fix Placement",
2707
+ "desc": "Fix incorrect placement attributes for specified tags",
2708
+ "name": "fix_placement",
2709
+ "icon": "placement",
2710
+ "category": "Tags",
2711
+ "keywords": "Possibly inappropriate Figure, Form, Formula, Note structure element, block, inline",
2712
+ "params": [
2713
+ {
2714
+ "title": "Tags",
2715
+ "desc": "Specify the tags using a ECMAScript regular expression or define them by template tag_update",
2716
+ "name": "tag_names",
2717
+ "type": "tag",
2718
+ "value": "^Figure$|^Formula$|^Form$|^Note$"
2719
+ }
2720
+ ]
2721
+ },
2722
+ {
2723
+ "title": "Fix Document Tag",
2724
+ "desc": "Fix the document tag",
2725
+ "name": "fix_document_tag",
2726
+ "icon": "fixdoctag",
2727
+ "category": "Tags"
2728
+ },
2729
+ {
2730
+ "title": "Fix List Tag",
2731
+ "desc": "Fix PDF/UA list structure issues for List (L) and its list items",
2732
+ "name": "fix_list_tag",
2733
+ "icon": "fixlist",
2734
+ "category": "Tags",
2735
+ "keywords": "PDF/UA, list structure, L, LI, LBody, Lbl, Caption",
2736
+ "params": [
2737
+ {
2738
+ "title": "Tags",
2739
+ "desc": "Specify the list tags using a ECMAScript regular expression or define them by template",
2740
+ "name": "tag_names",
2741
+ "type": "tag",
2742
+ "value": "^L$"
2743
+ },
2744
+ {
2745
+ "title": "Flatten List Structure",
2746
+ "desc": "Convert the list hierarchy (L->Div, LI->Div) to flatten incorrectly formatted lists",
2747
+ "name": "flatten_list",
2748
+ "type": "bool",
2749
+ "value": false
2750
+ },
2751
+ {
2752
+ "title": "Join Captions",
2753
+ "desc": "Merge multiple Caption elements under one list into a single Caption",
2754
+ "name": "join_captions",
2755
+ "type": "bool",
2756
+ "value": false,
2757
+ "disable": "(flatten_list==true)"
2758
+ },
2759
+ {
2760
+ "title": "Fix Invalid Nesting",
2761
+ "desc": "Resolve issues with disallowed tags nested within list",
2762
+ "name": "fix_nested",
2763
+ "type": "string",
2764
+ "flags": 1,
2765
+ "set": [
2766
+ {
2767
+ "title": "Do not fix",
2768
+ "desc": "Keep invalid nested content unchanged",
2769
+ "value": "none"
2770
+ },
2771
+ {
2772
+ "title": "Move invalid nested tags outside the List element",
2773
+ "desc": "Move unsupported children out of L and normalize LI children into LBody",
2774
+ "value": "move"
2775
+ },
2776
+ {
2777
+ "title": "Convert invalid nested tags to artifacts",
2778
+ "desc": "Artifact invalid nested content and remove invalid structure nodes",
2779
+ "value": "artifact"
2780
+ }
2781
+ ],
2782
+ "value": "none",
2783
+ "disable": "(flatten_list==true)"
2784
+ }
2785
+ ]
2786
+ },
2787
+ {
2788
+ "title": "Fix Link Tag",
2789
+ "desc": "Fix link(Link) tag errors",
2790
+ "name": "fix_link_tag",
2791
+ "icon": "fixlink",
2792
+ "category": "Tags",
2793
+ "keywords": "completeness, correctness, linkable string, descendant of Link tag",
2794
+ "params": [
2795
+ {
2796
+ "title": "Tags",
2797
+ "desc": "Define the link tags by the template tag_update",
2798
+ "name": "tag_names",
2799
+ "type": "tag",
2800
+ "value": "^Link$"
2801
+ },
2802
+ {
2803
+ "title": "Destination Zoom",
2804
+ "desc": "The zoom factor to set for the destination. If zero, use the predefined value to indicate a NULL zoom factor",
2805
+ "name": "zoom",
2806
+ "type": "float",
2807
+ "value": 0
2808
+ },
2809
+ {
2810
+ "title": "Left Padding",
2811
+ "desc": "Adjust horizontal padding (X axis) for the left edge of the destination",
2812
+ "name": "bbox_padding_x",
2813
+ "type": "float",
2814
+ "value": 4
2815
+ },
2816
+ {
2817
+ "title": "Top Padding",
2818
+ "desc": "Adjust vertical padding (Y axis) for the top edge of the destination",
2819
+ "name": "bbox_padding_y_top",
2820
+ "type": "float",
2821
+ "value": 4
2822
+ },
2823
+ {
2824
+ "title": "Overwrite",
2825
+ "desc": "Replace the current destination if it already exists",
2826
+ "name": "overwrite",
2827
+ "type": "bool",
2828
+ "value": false
2829
+ }
2830
+ ]
2831
+ },
2832
+ {
2833
+ "title": "Remove Tag Properties",
2834
+ "desc": "Remove properties from the defined tags",
2835
+ "name": "remove_tag_data",
2836
+ "icon": "clean",
2837
+ "category": "Tags",
2838
+ "params": [
2839
+ {
2840
+ "title": "Tags",
2841
+ "desc": "Specify the tags using a ECMAScript regular expression or define them by template tag_update",
2842
+ "name": "tag_names",
2843
+ "type": "tag",
2844
+ "value": ".*",
2845
+ "values": [
2846
+ {
2847
+ "desc": "All tags",
2848
+ "value": ".*"
2849
+ }
2850
+ ]
2851
+ },
2852
+ {
2853
+ "title": "Remove Alternate Description",
2854
+ "desc": "Remove Alt key",
2855
+ "name": "accept_alternate_desc",
2856
+ "type": "bool",
2857
+ "value": false
2858
+ },
2859
+ {
2860
+ "title": "Remove Actual Text",
2861
+ "desc": "Remove Replacement Text, ActualText key",
2862
+ "name": "accept_actual_text",
2863
+ "type": "bool",
2864
+ "value": false
2865
+ },
2866
+ {
2867
+ "title": "Remove Expansion Text",
2868
+ "desc": "Remove the E key",
2869
+ "name": "accept_expansion_text",
2870
+ "type": "bool",
2871
+ "value": false
2872
+ },
2873
+ {
2874
+ "title": "Remove ID",
2875
+ "desc": "Remove the ID key",
2876
+ "name": "accept_id",
2877
+ "type": "bool",
2878
+ "value": false
2879
+ },
2880
+ {
2881
+ "title": "Remove Language",
2882
+ "desc": "Remove the Lang key",
2883
+ "name": "accept_lang",
2884
+ "type": "bool",
2885
+ "value": false
2886
+ },
2887
+ {
2888
+ "title": "Remove Title",
2889
+ "desc": "Remove the T key",
2890
+ "name": "accept_title",
2891
+ "type": "bool",
2892
+ "value": false
2893
+ },
2894
+ {
2895
+ "title": "Remove Attribute Owner",
2896
+ "desc": "Remove standard attribute owners. If no attribute name is specified, all attributes in the group will be removed",
2897
+ "name": "owner",
2898
+ "flags": 1,
2899
+ "set": [
2900
+ {
2901
+ "desc": "None",
2902
+ "value": "None"
2903
+ },
2904
+ {
2905
+ "desc": "Layout Attributes governing the layout of content",
2906
+ "value": "Layout"
2907
+ },
2908
+ {
2909
+ "desc": "List Attributes governing the numbering of lists",
2910
+ "value": "List"
2911
+ },
2912
+ {
2913
+ "desc": "PrintField Attributes governing Form structure elements for non-interactive form fields",
2914
+ "value": "PrintField"
2915
+ },
2916
+ {
2917
+ "desc": "Table Attributes governing the organisation of cells in tables",
2918
+ "value": "Table"
2919
+ }
2920
+ ],
2921
+ "type": "string",
2922
+ "value": ""
2923
+ },
2924
+ {
2925
+ "title": "Remove Attribute Name",
2926
+ "desc": "Remove a specific attribute by name. For example Headers from the previously defined Attribute Owner",
2927
+ "name": "name",
2928
+ "type": "string",
2929
+ "value": ""
2930
+ }
2931
+ ]
2932
+ },
2933
+ {
2934
+ "title": "Set Annotation Contents",
2935
+ "desc": "Set an alternative description for an annotation using the Contents key or TU key for widget annotations",
2936
+ "name": "set_annot_contents",
2937
+ "icon": "annotationcontents",
2938
+ "category": "Annotations",
2939
+ "keywords": "alternative description missing for an annotation, set Contents key of Link annotations, Alternative description missing for an annotation",
2940
+ "params": [
2941
+ {
2942
+ "title": "Select Annotations",
2943
+ "desc": "Specify annotation types using a ECMAScript regular expression or define them by template annot_update",
2944
+ "name": "annot_types",
2945
+ "type": "annot",
2946
+ "value": ".*",
2947
+ "values": [
2948
+ {
2949
+ "desc": "All annotations",
2950
+ "value": ".*"
2951
+ },
2952
+ {
2953
+ "desc": "Link annotations",
2954
+ "value": "^Link$"
2955
+ },
2956
+ {
2957
+ "desc": "Link and Markup annotations",
2958
+ "value": "^Link$|^Highlight$|^Underline$|^Squiggly$|^StrikeOut$"
2959
+ },
2960
+ {
2961
+ "desc": "Widget annotations",
2962
+ "value": "^Widget$"
2963
+ }
2964
+ ]
2965
+ },
2966
+ {
2967
+ "title": "Contents",
2968
+ "desc": "Define the source for detecting alternative text",
2969
+ "name": "alt_type",
2970
+ "type": "int",
2971
+ "value": 1,
2972
+ "flags": 1,
2973
+ "set": [
2974
+ {
2975
+ "desc": "Custom text",
2976
+ "value": 0
2977
+ },
2978
+ {
2979
+ "desc": "Text from annotation bounding box",
2980
+ "value": 1
2981
+ },
2982
+ {
2983
+ "desc": "Action destination",
2984
+ "value": 2
2985
+ },
2986
+ {
2987
+ "desc": "Auto generated text",
2988
+ "value": 3
2989
+ },
2990
+ {
2991
+ "desc": "Use text from the first matching tag above",
2992
+ "value": 4
2993
+ },
2994
+ {
2995
+ "desc": "Use text from the first matching tag below",
2996
+ "value": 5
2997
+ },
2998
+ {
2999
+ "desc": "Use the text parent tag content",
3000
+ "value": 6
3001
+ }
3002
+ ]
3003
+ },
3004
+ {
3005
+ "title": "Custom Text",
3006
+ "desc": "Enter custom text for the Contents key",
3007
+ "name": "custom_text",
3008
+ "type": "string",
3009
+ "value": "Decorative",
3010
+ "disable": "(alt_type!=0)"
3011
+ },
3012
+ {
3013
+ "title": "Use Text from Tag",
3014
+ "desc": "Tag types, pipe-separated (e.g. P|H1|Lbl). Leave empty to use the first tag with text regardless of type. Otherwise use text from the first matching tag for the annotation contents.",
3015
+ "name": "description_tag",
3016
+ "type": "string",
3017
+ "value": "",
3018
+ "disable": "(alt_type!=4)&&(alt_type!=5)"
3019
+ },
3020
+ {
3021
+ "title": "Left BBox Padding",
3022
+ "desc": "Adjust horizontal padding (X axis) for the left edge of the BBox",
3023
+ "name": "bbox_padding_x",
3024
+ "type": "float",
3025
+ "value": 4,
3026
+ "disable": "(alt_type!=1)"
3027
+ },
3028
+ {
3029
+ "title": " Right BBox Padding",
3030
+ "desc": "Adjust horizontal padding (X axis) for the right edge of the BBox",
3031
+ "name": "bbox_padding_x_right",
3032
+ "type": "float",
3033
+ "value": 4,
3034
+ "disable": "(alt_type!=1)"
3035
+ },
3036
+ {
3037
+ "title": "Top BBox Padding",
3038
+ "desc": "Adjust vertical padding (Y axis) for the top edge of the BBox",
3039
+ "name": "bbox_padding_y_top",
3040
+ "type": "float",
3041
+ "value": 4,
3042
+ "disable": "(alt_type!=1)"
3043
+ },
3044
+ {
3045
+ "title": "Bottom BBox Padding",
3046
+ "desc": "Adjust vertical padding (Y axis) for the bottom edge of the BBox",
3047
+ "name": "bbox_padding_y",
3048
+ "type": "float",
3049
+ "value": 4,
3050
+ "disable": "(alt_type!=1)"
3051
+ },
3052
+ {
3053
+ "title": "Overwrite",
3054
+ "desc": "Replace the current alternative description if it already exists",
3055
+ "name": "overwrite",
3056
+ "type": "bool",
3057
+ "value": false
3058
+ }
3059
+ ]
3060
+ },
3061
+ {
3062
+ "title": "Set Annotation Flag",
3063
+ "desc": "Set, clear, or replace PDF annotation flags (F key) on selected annotations",
3064
+ "name": "set_annot_flag",
3065
+ "icon": "flag",
3066
+ "category": "Annotations",
3067
+ "keywords": "annotation flags, hidden, invisible, print, read only, locked, no view",
3068
+ "params": [
3069
+ {
3070
+ "title": "Annotations",
3071
+ "desc": "Specify annotation types using a ECMAScript regular expression or define them by template annot_update",
3072
+ "name": "annot_types",
3073
+ "type": "annot",
3074
+ "value": ".*",
3075
+ "values": [
3076
+ {
3077
+ "desc": "All annotations",
3078
+ "value": ".*"
3079
+ },
3080
+ {
3081
+ "desc": "Link annotations",
3082
+ "value": "^Link$"
3083
+ },
3084
+ {
3085
+ "desc": "Widget annotations",
3086
+ "value": "^Widget$"
3087
+ },
3088
+ {
3089
+ "desc": "All except Popup",
3090
+ "value": "^(?!.*Popup).*$"
3091
+ }
3092
+ ]
3093
+ },
3094
+ {
3095
+ "title": "Flag Mode",
3096
+ "desc": "Choose how the selected flags are applied to each annotation",
3097
+ "name": "flag_mode",
3098
+ "type": "int",
3099
+ "value": 0,
3100
+ "flags": 1,
3101
+ "set": [
3102
+ {
3103
+ "title": "Set",
3104
+ "desc": "Turn on the selected flags",
3105
+ "value": 0
3106
+ },
3107
+ {
3108
+ "title": "Clear",
3109
+ "desc": "Turn off the selected flags",
3110
+ "value": 1
3111
+ },
3112
+ {
3113
+ "title": "Replace",
3114
+ "desc": "Set the F key to exactly the selected flags",
3115
+ "value": 2
3116
+ }
3117
+ ]
3118
+ },
3119
+ {
3120
+ "title": "Annotation Flags",
3121
+ "desc": "Select annotation flags to set, clear, or replace (PDF Table 165)",
3122
+ "name": "flags",
3123
+ "type": "flag",
3124
+ "flags": 1,
3125
+ "value": 0,
3126
+ "set": [
3127
+ {
3128
+ "title": "Invisible",
3129
+ "desc": "Do not display unknown annotation types without a handler",
3130
+ "value": 1
3131
+ },
3132
+ {
3133
+ "title": "Hidden",
3134
+ "desc": "Do not display, print, or allow user interaction",
3135
+ "value": 2
3136
+ },
3137
+ {
3138
+ "title": "Print",
3139
+ "desc": "Include the annotation when the page is printed",
3140
+ "value": 4
3141
+ },
3142
+ {
3143
+ "title": "NoZoom",
3144
+ "desc": "Do not scale the annotation appearance with page magnification",
3145
+ "value": 8
3146
+ },
3147
+ {
3148
+ "title": "NoRotate",
3149
+ "desc": "Do not rotate the annotation appearance with page rotation",
3150
+ "value": 16
3151
+ },
3152
+ {
3153
+ "title": "NoView",
3154
+ "desc": "Do not display on screen or allow interaction (may still print)",
3155
+ "value": 32
3156
+ },
3157
+ {
3158
+ "title": "ReadOnly",
3159
+ "desc": "Do not allow user interaction (ignored for widget annotations)",
3160
+ "value": 64
3161
+ },
3162
+ {
3163
+ "title": "Locked",
3164
+ "desc": "Do not allow deletion or position/size changes by the user",
3165
+ "value": 128
3166
+ },
3167
+ {
3168
+ "title": "ToggleNoView",
3169
+ "desc": "Invert NoView for certain events (e.g. mouse-over display)",
3170
+ "value": 256
3171
+ },
3172
+ {
3173
+ "title": "LockedContents",
3174
+ "desc": "Do not allow the annotation contents to be modified",
3175
+ "value": 512
3176
+ }
3177
+ ]
3178
+ },
3179
+ {
3180
+ "title": "Overwrite",
3181
+ "desc": "Apply the flag change even when the F key already exists",
3182
+ "name": "overwrite",
3183
+ "type": "bool",
3184
+ "value": false
3185
+ }
3186
+ ]
3187
+ },
3188
+ {
3189
+ "title": "Remove Annotation Properties",
3190
+ "desc": "Remove properties from the annotations",
3191
+ "name": "remove_annot_data",
3192
+ "icon": "clean",
3193
+ "category": "Annotations",
3194
+ "params": [
3195
+ {
3196
+ "title": "Annotations",
3197
+ "desc": "Specify annotation types using a ECMAScript regular expression or define them by template annot_update",
3198
+ "name": "annot_types",
3199
+ "type": "annot",
3200
+ "value": ".*",
3201
+ "values": [
3202
+ {
3203
+ "desc": "All annotations",
3204
+ "value": ".*"
3205
+ },
3206
+ {
3207
+ "desc": "All except Link, Widget and Popup",
3208
+ "value": "^(?!.*Link|.*Widget|.*Popup).*$"
3209
+ }
3210
+ ]
3211
+ },
3212
+ {
3213
+ "title": "Remove Contents",
3214
+ "desc": "Remove the Contents key. For widget annotations, also removes the TU key",
3215
+ "name": "remove_contents",
3216
+ "type": "bool",
3217
+ "value": true
3218
+ },
3219
+ {
3220
+ "title": "Remove Keys",
3221
+ "desc": "Enter other optional annotation dictionary keys to remove, separated by commas. Safe targets include descriptive or metadata entries (T, Subj, RC, M, CreationDate) and optional visual entries (Border, C, BS, CA, BE). Warning: do not remove required or structural keys (Type, Subtype, Rect, P, StructParent, NM, AP, AS, A, Dest, Popup, IRT) — doing so can corrupt annotations or make the PDF invalid",
3222
+ "name": "remove_keys",
3223
+ "type": "string",
3224
+ "value": "",
3225
+ "set": [
3226
+ {
3227
+ "desc": "None",
3228
+ "value": ""
3229
+ },
3230
+ {
3231
+ "desc": "Descriptive text (T, Subj, RC)",
3232
+ "value": "T,Subj,RC"
3233
+ },
3234
+ {
3235
+ "desc": "Dates (M, CreationDate)",
3236
+ "value": "M,CreationDate"
3237
+ },
3238
+ {
3239
+ "desc": "Text annotation state (State, StateModel)",
3240
+ "value": "State,StateModel"
3241
+ },
3242
+ {
3243
+ "desc": "Visual style (Border, C, BS, CA)",
3244
+ "value": "Border,C,BS,CA"
3245
+ }
3246
+ ]
3247
+ }
3248
+ ]
3249
+ },
3250
+ {
3251
+ "title": "Flatten Annotations",
3252
+ "desc": "Flatten the visual representation of annotations into the content layer. This prevents issues with annotation tagging when interactivity is not needed in a PDF/UA-compliant document",
3253
+ "name": "flatten_annot",
3254
+ "icon": "flatten",
3255
+ "category": "Annotations",
3256
+ "params": [
3257
+ {
3258
+ "title": "Annotations",
3259
+ "desc": "Specify annotation types using a ECMAScript regular expression or define them by template annot_update",
3260
+ "name": "annot_types",
3261
+ "type": "annot",
3262
+ "value": "^(?!.*Link|.*Widget|.*Popup).*$",
3263
+ "values": [
3264
+ {
3265
+ "desc": "All except Link, Widget and Popup",
3266
+ "value": "^(?!.*Link|.*Widget|.*Popup).*$"
3267
+ }
3268
+ ]
3269
+ }
3270
+ ]
3271
+ },
3272
+ {
3273
+ "title": "Create Web Links",
3274
+ "desc": "Create link annotations from web addresses and email patterns found in the page content",
3275
+ "name": "create_web_links",
3276
+ "icon": "createweblinks",
3277
+ "category": "Annotations",
3278
+ "params": [
3279
+ {
3280
+ "title": "URL Pattern",
3281
+ "desc": "Specify a ECMAScript regular expression to identify web or email links in the content. The matched text will be used as the link target unless overridden by the URL Address or modified by adding the URL Prefix",
3282
+ "name": "url_regex",
3283
+ "type": "string",
3284
+ "set": [
3285
+ {
3286
+ "value": "^(((http(s)?|ftp):\\/\\/)|(mailto:)|www.)[^\\s\\/$.?#].[^\\s]*"
3287
+ },
3288
+ {
3289
+ "value": "^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}"
3290
+ }
3291
+ ],
3292
+ "value": "^(((http(s)?|ftp):\\/\\/)|(mailto:)|www.)[^\\s\\/$.?#].[^\\s]*"
3293
+ },
3294
+ {
3295
+ "title": "URL Prefix",
3296
+ "desc": "Prepend this prefix to the detected URL or email if it does not already begin with a known scheme (e.g., http, mailto). This is useful for ensuring that URLs are correctly formatted",
3297
+ "name": "url_prefix",
3298
+ "set": [
3299
+ {
3300
+ "value": ""
3301
+ },
3302
+ {
3303
+ "value": "http://"
3304
+ },
3305
+ {
3306
+ "value": "https://"
3307
+ },
3308
+ {
3309
+ "value": "ftp://"
3310
+ },
3311
+ {
3312
+ "value": "file://"
3313
+ },
3314
+ {
3315
+ "value": "mailto:"
3316
+ },
3317
+ {
3318
+ "value": "tel:"
3319
+ },
3320
+ {
3321
+ "value": "data:"
3322
+ },
3323
+ {
3324
+ "value": "ws://"
3325
+ },
3326
+ {
3327
+ "value": "wss://"
3328
+ }
3329
+ ],
3330
+ "type": "string",
3331
+ "value": ""
3332
+ },
3333
+ {
3334
+ "title": "URL Address",
3335
+ "desc": "Set the destination URL. If this is set, it overrides the matched text and any prefix added by the URL Prefix",
3336
+ "name": "url",
3337
+ "type": "string",
3338
+ "value": ""
3339
+ }
3340
+ ]
3341
+ },
3342
+ {
3343
+ "title": "Delete Annotations",
3344
+ "desc": "Completely remove an annotation from the PDF. Use this action when certain annotation types (e.g., TrapNet) are not permitted in a PDF/UA-compliant document",
3345
+ "name": "delete_annot",
3346
+ "icon": "delete_sweep",
3347
+ "category": "Annotations",
3348
+ "params": [
3349
+ {
3350
+ "title": "Annotations",
3351
+ "desc": "Specify annotation types using a ECMAScript regular expression or define them by template annot_update",
3352
+ "name": "annot_types",
3353
+ "type": "annot",
3354
+ "value": "^TrapNet$",
3355
+ "values": [
3356
+ {
3357
+ "desc": "TrapNet annotations",
3358
+ "value": "^TrapNet$"
3359
+ },
3360
+ {
3361
+ "desc": "All annotations",
3362
+ "value": ".*"
3363
+ },
3364
+ {
3365
+ "desc": "Untagged (non-referenced) Link annotations",
3366
+ "value": {
3367
+ "template": {
3368
+ "annot_update": [
3369
+ {
3370
+ "query": {
3371
+ "$and": [
3372
+ {
3373
+ "$0_annot_type": "Link"
3374
+ },
3375
+ {
3376
+ "$0_tag_type": ""
3377
+ }
3378
+ ],
3379
+ "param": [
3380
+ "pdf_annot"
3381
+ ]
3382
+ },
3383
+ "statement": "$if"
3384
+ }
3385
+ ]
3386
+ }
3387
+ }
3388
+ },
3389
+ {
3390
+ "desc": "Untagged (non-referenced) annotations",
3391
+ "value": {
3392
+ "template": {
3393
+ "annot_update": [
3394
+ {
3395
+ "query": {
3396
+ "$and": [
3397
+ {
3398
+ "$0_tag_type": ""
3399
+ }
3400
+ ],
3401
+ "param": [
3402
+ "pdf_annot"
3403
+ ]
3404
+ },
3405
+ "statement": "$if"
3406
+ }
3407
+ ]
3408
+ }
3409
+ }
3410
+ }
3411
+ ]
3412
+ }
3413
+ ]
3414
+ },
3415
+ {
3416
+ "title": "Set Tag Attributes",
3417
+ "desc": "Set standard structure attributes for tags. Each attribute object has an owner",
3418
+ "name": "set_structure_attribute",
3419
+ "icon": "tagattribute",
3420
+ "category": "Tags",
3421
+ "keywords": "Layout attribute, PrintField attribute, Tag attribute",
3422
+ "params": [
3423
+ {
3424
+ "title": "Tags",
3425
+ "desc": "Specify the tags using a ECMAScript regular expression or define them by template tag_update",
3426
+ "name": "tag_names",
3427
+ "type": "tag",
3428
+ "value": ".*",
3429
+ "values": [
3430
+ {
3431
+ "desc": "All tags",
3432
+ "value": ".*"
3433
+ }
3434
+ ]
3435
+ },
3436
+ {
3437
+ "title": "Overwrite",
3438
+ "desc": "Replace the current attribute if it already exists",
3439
+ "name": "overwrite",
3440
+ "type": "bool",
3441
+ "value": false
3442
+ },
3443
+ {
3444
+ "title": "Owner",
3445
+ "desc": "Specify the standard attribute owner",
3446
+ "name": "owner",
3447
+ "flags": 1,
3448
+ "set": [
3449
+ {
3450
+ "desc": "Layout Attributes governing the layout of content",
3451
+ "value": "Layout"
3452
+ },
3453
+ {
3454
+ "desc": "List Attributes governing the numbering of lists",
3455
+ "value": "List"
3456
+ },
3457
+ {
3458
+ "desc": "PrintField Attributes governing Form structure elements for non-interactive form fields",
3459
+ "value": "PrintField"
3460
+ },
3461
+ {
3462
+ "desc": "Table Attributes governing the organisation of cells in tables",
3463
+ "value": "Table"
3464
+ }
3465
+ ],
3466
+ "type": "string",
3467
+ "value": ""
3468
+ },
3469
+ {
3470
+ "title": "Name",
3471
+ "desc": "Specify the attribute name",
3472
+ "name": "name",
3473
+ "type": "string",
3474
+ "value": ""
3475
+ },
3476
+ {
3477
+ "title": "Value",
3478
+ "desc": "Specify the attribute value",
3479
+ "name": "value",
3480
+ "type": "string",
3481
+ "value": ""
3482
+ },
3483
+ {
3484
+ "title": "Value Type",
3485
+ "desc": "Specify the attribute value type",
3486
+ "name": "value_type",
3487
+ "flags": 1,
3488
+ "set": [
3489
+ {
3490
+ "desc": "string",
3491
+ "value": "string"
3492
+ },
3493
+ {
3494
+ "desc": "name",
3495
+ "value": "name"
3496
+ },
3497
+ {
3498
+ "desc": "array",
3499
+ "value": "array"
3500
+ },
3501
+ {
3502
+ "desc": "number",
3503
+ "value": "number"
3504
+ }
3505
+ ],
3506
+ "type": "string",
3507
+ "value": ""
3508
+ }
3509
+ ]
3510
+ },
3511
+ {
3512
+ "title": "Set List Numbering",
3513
+ "desc": "Attributes governing the numbering of lists",
3514
+ "name": "set_list_attribute",
3515
+ "icon": "list_attribute",
3516
+ "category": "Tags",
3517
+ "keywords": "ListNumbering attribute, ordered list, unordered list, Decimal, UpperRoman, LowerRoman, UpperAlpha, LowerAlpha",
3518
+ "params": [
3519
+ {
3520
+ "title": "Tags",
3521
+ "desc": "Specify the List tags using a ECMAScript regular expression or define them by template tag_update",
3522
+ "name": "tag_names",
3523
+ "type": "tag",
3524
+ "value": "^L$",
3525
+ "values": [
3526
+ {
3527
+ "desc": "List tags",
3528
+ "value": "^L$"
3529
+ },
3530
+ {
3531
+ "desc": "List tags with Decimal Numbering",
3532
+ "value": {
3533
+ "template": {
3534
+ "tag_update": [
3535
+ {
3536
+ "query": {
3537
+ "$and": [
3538
+ {
3539
+ "$0_tag_type": {
3540
+ "$regex": "^L$"
3541
+ }
3542
+ },
3543
+ {
3544
+ "$0_text": {
3545
+ "$regex": "^\\d."
3546
+ }
3547
+ }
3548
+ ],
3549
+ "param": [
3550
+ "pds_struct_elem"
3551
+ ]
3552
+ },
3553
+ "statement": "$if"
3554
+ }
3555
+ ]
3556
+ }
3557
+ }
3558
+ }
3559
+ ]
3560
+ },
3561
+ {
3562
+ "title": "List Numbering",
3563
+ "desc": "The numbering system used to generate the content of the Lbl (Label) elements in an autonumbered list, or the symbol used to identify each item in an unnumbered list.",
3564
+ "name": "list_numbering",
3565
+ "flags": 1,
3566
+ "set": [
3567
+ {
3568
+ "desc": "None - Lbl elements (if present) contain arbitrary text not subject to any numbering scheme",
3569
+ "value": "None"
3570
+ },
3571
+ {
3572
+ "desc": "Disc - Solid circular bullet",
3573
+ "value": "Disc"
3574
+ },
3575
+ {
3576
+ "desc": "Circle - Open circular bullet",
3577
+ "value": "Circle"
3578
+ },
3579
+ {
3580
+ "desc": "Square - Solid square bullet",
3581
+ "value": "Square"
3582
+ },
3583
+ {
3584
+ "desc": "Decimal - Decimal arabic numerals (1–9, 10–99, …)",
3585
+ "value": "Decimal"
3586
+ },
3587
+ {
3588
+ "desc": "UpperRoman - Uppercase roman numerals (I, II, III, IV, …)",
3589
+ "value": "UpperRoman"
3590
+ },
3591
+ {
3592
+ "desc": "LowerRoman - Lowercase roman numerals (i, ii, iii, iv, …)",
3593
+ "value": "LowerRoman"
3594
+ },
3595
+ {
3596
+ "desc": "UpperAlpha - Uppercase letters (A, B, C, …)",
3597
+ "value": "UpperAlpha"
3598
+ },
3599
+ {
3600
+ "desc": "LowerAlpha - Lowercase letters (a, b, c, …)",
3601
+ "value": "LowerAlpha"
3602
+ }
3603
+ ],
3604
+ "type": "string",
3605
+ "value": "None"
3606
+ },
3607
+ {
3608
+ "title": "Overwrite",
3609
+ "desc": "Replace the current list numbering attribute if it already exists",
3610
+ "name": "overwrite",
3611
+ "type": "bool",
3612
+ "value": false
3613
+ }
3614
+ ]
3615
+ },
3616
+ {
3617
+ "title": "Fix Spaces",
3618
+ "desc": "Add missing or resolve duplicate white spaces within a structure element",
3619
+ "name": "fix_structure_spaces",
3620
+ "icon": "spacebar",
3621
+ "category": "Accessibility",
3622
+ "keywords": "insert spaces, whitespace",
3623
+ "params": [
3624
+ {
3625
+ "title": "Add Missing Spaces",
3626
+ "desc": "Identify words in the structure and add missing spaces",
3627
+ "name": "add_missing_spaces",
3628
+ "type": "bool",
3629
+ "value": true
3630
+ },
3631
+ {
3632
+ "title": "Remove Unnecessary Spaces",
3633
+ "desc": "Remove duplicate spaces after each word",
3634
+ "name": "remove_unnecessary_spaces",
3635
+ "type": "bool",
3636
+ "value": false
3637
+ },
3638
+ {
3639
+ "title": "Artifact Unnecessary Spaces",
3640
+ "desc": "Mark duplicate spaces as artifacts",
3641
+ "name": "artifact_unnecessary_spaces",
3642
+ "type": "bool",
3643
+ "value": true
3644
+ }
3645
+ ]
3646
+ },
3647
+ {
3648
+ "title": "Fix Headings",
3649
+ "desc": "Repair logical heading structure for accessibility (PDF/UA): optional H1–H6 from style, then fix invalid level sequence (no skipped levels).",
3650
+ "name": "fix_headings",
3651
+ "icon": "fixheadings",
3652
+ "category": "Accessibility",
3653
+ "keywords": "heading tag, logical structure, heading hierarchy, skipped levels, H tags, PDF/UA, Matterhorn, WCAG, accessibility, outline, structure order",
3654
+ "params": [
3655
+ {
3656
+ "title": "Assign heading levels (H1–H6)",
3657
+ "desc": "Infer H1–H6 from font style and leading numbering for generic **H** tags before sequence repair.",
3658
+ "name": "fix_heading_levels",
3659
+ "type": "bool",
3660
+ "value": true
3661
+ },
3662
+ {
3663
+ "title": "Fix heading structure",
3664
+ "desc": "How to correct invalid heading levels after assignment (PDF/UA: headings follow a logical sequence; levels must not skip).",
3665
+ "name": "renumber_headings",
3666
+ "type": "int",
3667
+ "value": 2,
3668
+ "flags": 1,
3669
+ "set": [
3670
+ {
3671
+ "desc": "Paragraph (P) for invalid heading structure",
3672
+ "value": 0
3673
+ },
3674
+ {
3675
+ "desc": "Align to next sequential heading level",
3676
+ "value": 1
3677
+ },
3678
+ {
3679
+ "desc": "Insert empty headings for skipped levels",
3680
+ "value": 2
3681
+ }
3682
+ ],
3683
+ "disable": "(fix_heading_levels==true)"
3684
+ }
3685
+ ]
3686
+ },
3687
+ {
3688
+ "title": "Rotate Page",
3689
+ "desc": "Rotate pages",
3690
+ "name": "rotate_pages",
3691
+ "icon": "rotate",
3692
+ "category": "Pages",
3693
+ "params": [
3694
+ {
3695
+ "title": "Pages",
3696
+ "desc": "Select pages using ECMAScript regular expression or by defining anchors in a template",
3697
+ "name": "object_types",
3698
+ "type": "object",
3699
+ "value": ".*",
3700
+ "values": [
3701
+ {
3702
+ "desc": "All pages",
3703
+ "value": ".*"
3704
+ },
3705
+ {
3706
+ "desc": "Even-numbered pages",
3707
+ "value": "^(\\d*[02468])$"
3708
+ },
3709
+ {
3710
+ "desc": "Odd-numbered pages",
3711
+ "value": "^(\\d*[13579])$"
3712
+ },
3713
+ {
3714
+ "desc": "Pages With Rotation",
3715
+ "value": {
3716
+ "template": {
3717
+ "object_update": [
3718
+ {
3719
+ "flag": "anchor",
3720
+ "query": {
3721
+ "$and": [
3722
+ {
3723
+ "$page_rotation": "90"
3724
+ }
3725
+ ],
3726
+ "param": [
3727
+ "pds_object"
3728
+ ]
3729
+ },
3730
+ "statement": "$if"
3731
+ }
3732
+ ]
3733
+ }
3734
+ }
3735
+ },
3736
+ {
3737
+ "desc": "Landscape Pages",
3738
+ "value": {
3739
+ "template": {
3740
+ "object_update": [
3741
+ {
3742
+ "flag": "anchor",
3743
+ "query": {
3744
+ "$and": [
3745
+ {
3746
+ "$page_width": {
3747
+ "$gt": "$page_height"
3748
+ }
3749
+ }
3750
+ ],
3751
+ "param": [
3752
+ "pds_object"
3753
+ ]
3754
+ },
3755
+ "statement": "$if"
3756
+ }
3757
+ ]
3758
+ }
3759
+ }
3760
+ },
3761
+ {
3762
+ "desc": "Portrait Pages",
3763
+ "value": {
3764
+ "template": {
3765
+ "object_update": [
3766
+ {
3767
+ "flag": "anchor",
3768
+ "query": {
3769
+ "$and": [
3770
+ {
3771
+ "$page_height": {
3772
+ "$gt": "$page_width"
3773
+ }
3774
+ }
3775
+ ],
3776
+ "param": [
3777
+ "pds_object"
3778
+ ]
3779
+ },
3780
+ "statement": "$if"
3781
+ }
3782
+ ]
3783
+ }
3784
+ }
3785
+ }
3786
+ ]
3787
+ },
3788
+ {
3789
+ "title": "Rotation Type",
3790
+ "desc": "Specify the type of rotation",
3791
+ "name": "rotation_type",
3792
+ "type": "int",
3793
+ "flags": 1,
3794
+ "set": [
3795
+ {
3796
+ "desc": "Set rotation angle",
3797
+ "value": 0
3798
+ },
3799
+ {
3800
+ "desc": "Rotate by angle",
3801
+ "value": 1
3802
+ }
3803
+ ],
3804
+ "value": 1
3805
+ },
3806
+ {
3807
+ "title": "Rotation Angle",
3808
+ "desc": "Specify the rotation angle",
3809
+ "name": "rotation_angle",
3810
+ "type": "int",
3811
+ "set": [
3812
+ {
3813
+ "desc": "0 degrees",
3814
+ "value": 0
3815
+ },
3816
+ {
3817
+ "desc": "90 degrees",
3818
+ "value": 90
3819
+ },
3820
+ {
3821
+ "desc": "180 degrees",
3822
+ "value": 180
3823
+ },
3824
+ {
3825
+ "desc": "270 degrees",
3826
+ "value": 270
3827
+ }
3828
+ ],
3829
+ "value": 0
3830
+ }
3831
+ ]
3832
+ },
3833
+ {
3834
+ "title": "Normalize Page Orientation",
3835
+ "desc": "Correct the orientation of selected pages and normalize their transformation matrix and bounding box",
3836
+ "name": "fix_page_orientation",
3837
+ "icon": "crop_rotate",
3838
+ "category": "Pages",
3839
+ "params": [
3840
+ {
3841
+ "title": "Pages",
3842
+ "desc": "Select pages using ECMAScript regular expression or by defining anchors in a template",
3843
+ "name": "object_types",
3844
+ "type": "object",
3845
+ "value": ".*",
3846
+ "values": [
3847
+ {
3848
+ "desc": "All pages",
3849
+ "value": ".*"
3850
+ },
3851
+ {
3852
+ "desc": "Even-numbered pages",
3853
+ "value": "^(\\d*[02468])$"
3854
+ },
3855
+ {
3856
+ "desc": "Odd-numbered pages",
3857
+ "value": "^(\\d*[13579])$"
3858
+ },
3859
+ {
3860
+ "desc": "Pages with a specific object defined in template",
3861
+ "value": {
3862
+ "template": {
3863
+ "text_line_update": [
3864
+ {
3865
+ "flag": "anchor|splitter",
3866
+ "query": {
3867
+ "$and": [
3868
+ {
3869
+ "$0_font_name": {
3870
+ "$regex": "ArialMT"
3871
+ }
3872
+ },
3873
+ {
3874
+ "$0_font_size": "8"
3875
+ }
3876
+ ],
3877
+ "param": [
3878
+ "pde_text_line"
3879
+ ]
3880
+ },
3881
+ "statement": "$if"
3882
+ }
3883
+ ]
3884
+ }
3885
+ }
3886
+ }
3887
+ ]
3888
+ }
3889
+ ]
3890
+ },
3891
+ {
3892
+ "title": "Split Pages",
3893
+ "desc": "Split a PDF into multiple documents based on defined page rules or template anchors",
3894
+ "name": "split_pages",
3895
+ "icon": "call_split",
3896
+ "category": "Pages",
3897
+ "params": [
3898
+ {
3899
+ "name": "base_pdf",
3900
+ "title": "Output Path",
3901
+ "desc": "Specify the output folder based on the input file pathh",
3902
+ "ext": "pdf",
3903
+ "flags": 4,
3904
+ "type": "file_path",
3905
+ "value": ""
3906
+ },
3907
+ {
3908
+ "title": "Splitters",
3909
+ "desc": "Specify split rules using ECMAScript regular expression for page numbers or template-defined anchors",
3910
+ "name": "object_types",
3911
+ "type": "object",
3912
+ "value": ".*",
3913
+ "values": [
3914
+ {
3915
+ "desc": "Split into individual pages",
3916
+ "value": ".*"
3917
+ },
3918
+ {
3919
+ "desc": "Split document by even-numbered pages",
3920
+ "value": "^(\\d*[02468])$"
3921
+ },
3922
+ {
3923
+ "desc": "Split document by odd-numbered pages",
3924
+ "value": "^(\\d*[13579])$"
3925
+ },
3926
+ {
3927
+ "desc": "Define split points using a template with anchors",
3928
+ "value": {
3929
+ "template": {
3930
+ "text_line_update": [
3931
+ {
3932
+ "flag": "anchor|splitter",
3933
+ "query": {
3934
+ "$and": [
3935
+ {
3936
+ "$0_font_name": {
3937
+ "$regex": "ArialMT"
3938
+ }
3939
+ },
3940
+ {
3941
+ "$0_font_size": "8"
3942
+ }
3943
+ ],
3944
+ "param": [
3945
+ "pde_text_line"
3946
+ ]
3947
+ },
3948
+ "statement": "$if"
3949
+ }
3950
+ ]
3951
+ }
3952
+ }
3953
+ }
3954
+ ]
3955
+ }
3956
+ ]
3957
+ }
3958
+ ]
3959
+ }