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.
- pdfix_cli/__init__.py +23 -0
- pdfix_cli/__main__.py +30 -0
- pdfix_cli/_paths.py +103 -0
- pdfix_cli/_runner.py +64 -0
- pdfix_cli/runtime/LICENSE.txt +4 -0
- pdfix_cli/runtime/README.txt +1 -0
- pdfix_cli/runtime/bin/x86_64/LicenseSpringVMD.dll +0 -0
- pdfix_cli/runtime/bin/x86_64/pdf.dll +0 -0
- pdfix_cli/runtime/bin/x86_64/pdfix_app.exe +0 -0
- pdfix_cli/runtime/resources/fix_metadata.json +98 -0
- pdfix_cli/runtime/resources/make_accessible.json +739 -0
- pdfix_cli/runtime/resources/pdf_action.json +3959 -0
- pdfix_cli/runtime/resources/pdf_config.json +4034 -0
- pdfix_cli/runtime/resources/pdfix_settings.json +38 -0
- pdfix_cli/runtime/resources/quick_fix.json +125 -0
- pdfix_cli/runtime/version.txt +1 -0
- pdfix_cli-9.1.1.dist-info/METADATA +121 -0
- pdfix_cli-9.1.1.dist-info/RECORD +22 -0
- pdfix_cli-9.1.1.dist-info/WHEEL +5 -0
- pdfix_cli-9.1.1.dist-info/entry_points.txt +4 -0
- pdfix_cli-9.1.1.dist-info/licenses/LICENSE +4 -0
- pdfix_cli-9.1.1.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"product<desc>": "product settings",
|
|
3
|
+
"product": {
|
|
4
|
+
"name<type>": "string",
|
|
5
|
+
"name": "PDFix SDK",
|
|
6
|
+
"code<type>": "string",
|
|
7
|
+
"code": "pdfixsdk",
|
|
8
|
+
"url<type>": "string",
|
|
9
|
+
"url": "www.pdfix.net"
|
|
10
|
+
},
|
|
11
|
+
"@user<desc>": "user settings",
|
|
12
|
+
"user": {
|
|
13
|
+
"@retain_pdf_ua<type>": "bool",
|
|
14
|
+
"retain_pdfua": true,
|
|
15
|
+
"@font_search_paths<type>": "array_param",
|
|
16
|
+
"font_search_paths": [],
|
|
17
|
+
"@page-tag<type>": "string",
|
|
18
|
+
"page-tag": "NonStruct",
|
|
19
|
+
"@license_data_path<type>": "string",
|
|
20
|
+
"license_data_path": "",
|
|
21
|
+
"@license_file_name<type>": "string",
|
|
22
|
+
"license_file_name": "",
|
|
23
|
+
"@log_level<type>": "number",
|
|
24
|
+
"@log_level<desc>": "Log level values 0:LOG_NOTHING, 1:LOG_CRITICAL, 2:LOG_ERROR, 3:LOG_WARNING, 4:LOG_INFO, 5:LOG_DEBUG]",
|
|
25
|
+
"log_level": 3,
|
|
26
|
+
"@log_path<type>": "string",
|
|
27
|
+
"@log_path<desc>": "Path to the log file",
|
|
28
|
+
"log_path": ""
|
|
29
|
+
},
|
|
30
|
+
"@developer<desc>": "developer settings",
|
|
31
|
+
"developer": {
|
|
32
|
+
"@profiler_path<type>": "string",
|
|
33
|
+
"profiler_path": "~/profiler.txt",
|
|
34
|
+
"@max_processes<type>": "number",
|
|
35
|
+
"@max_processes<desc>": "Number of maximum concurrent processes running on one computer. The value is ignored if the processes are limited by license.",
|
|
36
|
+
"max_processes": 0
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "quickfix",
|
|
3
|
+
"title": "QuickFix",
|
|
4
|
+
"desc": "Automatically repairs common document issues that can be fixed safely without manual review. This preset focuses on simple metadata, structure, font, and accessibility corrections.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"quick fix",
|
|
7
|
+
"auto fix",
|
|
8
|
+
"automatic repair",
|
|
9
|
+
"accessibility",
|
|
10
|
+
"pdf accessibility",
|
|
11
|
+
"pdf/ua",
|
|
12
|
+
"tagged pdf",
|
|
13
|
+
"parent tree",
|
|
14
|
+
"id tree",
|
|
15
|
+
"structure tree",
|
|
16
|
+
"tabs order",
|
|
17
|
+
"tab order",
|
|
18
|
+
"document title",
|
|
19
|
+
"viewer preferences",
|
|
20
|
+
"suspects",
|
|
21
|
+
"optional content",
|
|
22
|
+
"metadata repair"
|
|
23
|
+
],
|
|
24
|
+
"version": "0.4.2",
|
|
25
|
+
"min_sdk_version": "8.8.0",
|
|
26
|
+
"max_sdk_version": "",
|
|
27
|
+
"release_date": "2025-12-12",
|
|
28
|
+
"category": "Accessibility",
|
|
29
|
+
"icon": "quickfix",
|
|
30
|
+
"settings": {
|
|
31
|
+
"stop_on_action_failure": false
|
|
32
|
+
},
|
|
33
|
+
"actions": [
|
|
34
|
+
{
|
|
35
|
+
"name": "delete_annot",
|
|
36
|
+
"title": "Delete Annotations (TrapNet, PrinterMark)",
|
|
37
|
+
"desc": "Remove non-permitted annotation types that commonly cause PDF/UA compliance failures. TrapNet and PrinterMark annotations are production artifacts and must not be present in accessible documents.",
|
|
38
|
+
"params": [
|
|
39
|
+
{
|
|
40
|
+
"name": "annot_types",
|
|
41
|
+
"value": "^(TrapNet|PrinterMark)$"
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "set_display_doc_title",
|
|
47
|
+
"title": "Fix Display Document Title",
|
|
48
|
+
"desc": "Synchronize the ViewerPreferences DisplayDocTitle setting with the actual document title so that assistive technologies announce the correct title.",
|
|
49
|
+
"params": []
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "set_suspect_value",
|
|
53
|
+
"title": "Clear Suspect Flag",
|
|
54
|
+
"desc": "Fix the MarkInfo dictionary by clearing the Suspects entry, indicating that the document structure is no longer considered unreliable.",
|
|
55
|
+
"params": []
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"name": "fix_oc_name",
|
|
59
|
+
"title": "Fix Optional Content Configuration",
|
|
60
|
+
"desc": "Repair Optional Content (OCG) configuration dictionaries to ensure layer definitions are valid and accessible.",
|
|
61
|
+
"params": []
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "fix_media_clip_keys",
|
|
65
|
+
"title": "Fix Media Clip (Content-Type to text/plain)",
|
|
66
|
+
"desc": "Fix media clip content type keys to a safe default (text/plain) to prevent validation failures on embedded media metadata.",
|
|
67
|
+
"params": [
|
|
68
|
+
{
|
|
69
|
+
"name": "ct_key",
|
|
70
|
+
"value": "text/plain"
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"name": "set_tabs_key",
|
|
76
|
+
"title": "Set Tab Order (Structure)",
|
|
77
|
+
"desc": "Set the page Tabs key to Structure so keyboard navigation follows the logical reading order.",
|
|
78
|
+
"params": [
|
|
79
|
+
{
|
|
80
|
+
"name": "tabs_key",
|
|
81
|
+
"value": "S"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"name": "overwrite",
|
|
85
|
+
"value": true
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"name": "set_tag_id",
|
|
91
|
+
"title": "Set Tag IDs (Note, TH)",
|
|
92
|
+
"desc": "Generate unique ID keys for Note and table header (TH) structure elements as required by PDF/UA.",
|
|
93
|
+
"params": [
|
|
94
|
+
{
|
|
95
|
+
"name": "tag_names",
|
|
96
|
+
"value": "^Note$|^TH$"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"name": "overwrite",
|
|
100
|
+
"value": false
|
|
101
|
+
}
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"name": "fix_placement",
|
|
106
|
+
"title": "Fix Tag Placement Attributes",
|
|
107
|
+
"desc": "Correct invalid or inappropriate placement attributes for tags such as Figure, Formula, Form, and Note."
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"name": "fix_parent_tree",
|
|
111
|
+
"title": "Rebuild Parent Tree",
|
|
112
|
+
"desc": "Repair the structural parent tree to restore correct associations between page content and structure elements."
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"name": "fix_id_tree",
|
|
116
|
+
"title": "Repair ID Tree",
|
|
117
|
+
"desc": "Repair the document ID tree to restore valid references for structure elements and tagged content."
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"name": "fix_metadata",
|
|
121
|
+
"desc": "Repair and normalize document XMP metadata to improve standards compliance and consistency",
|
|
122
|
+
"title": "Fix XMP Metadata"
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
9.1.1
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pdfix-cli
|
|
3
|
+
Version: 9.1.1
|
|
4
|
+
Summary: PDFix SDK command-line tools for PDF accessibility, remediation, extraction, conversion, rendering, and automation.
|
|
5
|
+
Author-email: "PDFix s.r.o." <support@pdfix.net>
|
|
6
|
+
License: LicenseRef-PDFix
|
|
7
|
+
Project-URL: Homepage, https://pdfix.net
|
|
8
|
+
Project-URL: Documentation, https://github.com/pdfix/pdfix_sdk_builds
|
|
9
|
+
Project-URL: Repository, https://github.com/pdfix/pdfix_sdk_builds
|
|
10
|
+
Project-URL: Bug Tracker, https://github.com/pdfix/pdfix_sdk_builds/issues
|
|
11
|
+
Project-URL: License, https://pdfix.net/terms
|
|
12
|
+
Keywords: pdfix,pdfix-sdk,pdfix-cli,pdf,cli,pdf-cli,pdf-sdk,pdf-automation,pdf-accessibility,pdf-remediation,pdf-ua,wcag,accessible-pdf,pdf-processing,pdf-extraction,pdf-conversion,pdf-rendering,pdf-tags,pdf-forms
|
|
13
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: Topic :: Software Development :: Build Tools
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
18
|
+
Classifier: License :: Other/Proprietary License
|
|
19
|
+
Requires-Python: >=3.8
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
License-File: LICENSE
|
|
22
|
+
Dynamic: license-file
|
|
23
|
+
|
|
24
|
+
# PDFix SDK CLI App
|
|
25
|
+
|
|
26
|
+
PDFix SDK CLI App packaged for pip.
|
|
27
|
+
|
|
28
|
+
PDFix SDK is a cross-platform PDF processing toolkit for automating PDF
|
|
29
|
+
accessibility, document remediation, data extraction, and PDF conversion
|
|
30
|
+
workflows. The PDFix CLI App exposes those SDK capabilities as a command-line
|
|
31
|
+
tool for shells, build pipelines, batch jobs, server-side automation, and
|
|
32
|
+
Python applications.
|
|
33
|
+
|
|
34
|
+
This package installs the native PDFix CLI runtime for your platform and
|
|
35
|
+
provides console scripts plus a small Python API for invoking the CLI.
|
|
36
|
+
|
|
37
|
+
## What PDFix CLI App is for
|
|
38
|
+
|
|
39
|
+
Use PDFix CLI App when you need scriptable PDF automation without integrating
|
|
40
|
+
directly with the PDFix SDK API. Common use cases include:
|
|
41
|
+
|
|
42
|
+
- Automated PDF accessibility remediation for PDF/UA and WCAG-oriented workflows
|
|
43
|
+
- Adding and improving tags, document structure, reading order, annotations,
|
|
44
|
+
metadata, and fonts
|
|
45
|
+
- Extracting PDF content, forms, bookmarks, tags, page objects, tables, images,
|
|
46
|
+
and document data to formats such as JSON, XML, CSV, text, and images
|
|
47
|
+
- Converting PDFs to HTML or structured data for web, archive, review, and
|
|
48
|
+
downstream processing
|
|
49
|
+
- Rendering PDF pages to raster images for previews, validation, or QA
|
|
50
|
+
- Applying operations such as watermarking, flattening, redaction, page
|
|
51
|
+
insert/delete/move, digital signatures, form import/export, and security
|
|
52
|
+
removal
|
|
53
|
+
- Running batch processing and JSON-configured PDF Actions in production
|
|
54
|
+
pipelines
|
|
55
|
+
|
|
56
|
+
## Install
|
|
57
|
+
|
|
58
|
+
```sh
|
|
59
|
+
pip install pdfix-cli
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Pip selects the matching platform wheel automatically (Windows x64, Linux
|
|
63
|
+
x86_64 / aarch64, macOS Intel / Apple Silicon).
|
|
64
|
+
|
|
65
|
+
## Console usage
|
|
66
|
+
|
|
67
|
+
After installation, any of these commands invoke the native PDFix CLI App:
|
|
68
|
+
|
|
69
|
+
```sh
|
|
70
|
+
pdfix-cli --version
|
|
71
|
+
pdfix --help
|
|
72
|
+
pdfix_app make-accessible input.pdf -o output.pdf
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Arguments are forwarded unchanged to the native executable. Exit code, stdout,
|
|
76
|
+
and stderr are preserved.
|
|
77
|
+
|
|
78
|
+
## Python API
|
|
79
|
+
|
|
80
|
+
```python
|
|
81
|
+
from pdfix_cli import (
|
|
82
|
+
get_pdfix_cli_path,
|
|
83
|
+
is_pdfix_cli_available,
|
|
84
|
+
run_pdfix_cli,
|
|
85
|
+
)
|
|
86
|
+
|
|
87
|
+
if not is_pdfix_cli_available():
|
|
88
|
+
raise RuntimeError("PDFix CLI runtime is not installed for this platform.")
|
|
89
|
+
|
|
90
|
+
print(get_pdfix_cli_path())
|
|
91
|
+
|
|
92
|
+
child = run_pdfix_cli(["--version"])
|
|
93
|
+
child.wait()
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
- `get_pdfix_cli_path()` — absolute path to the bundled `pdfix_app` executable
|
|
97
|
+
- `is_pdfix_cli_available()` — whether the runtime can be resolved
|
|
98
|
+
- `run_pdfix_cli(args)` — spawn the CLI (inherits stdio by default)
|
|
99
|
+
|
|
100
|
+
## Supported platforms
|
|
101
|
+
|
|
102
|
+
| Platform | Wheel tag |
|
|
103
|
+
|----------|-----------|
|
|
104
|
+
| Windows x64 | `win_amd64` |
|
|
105
|
+
| Linux x86_64 | `manylinux_2_17_x86_64` |
|
|
106
|
+
| Linux aarch64 | `manylinux_2_17_aarch64` |
|
|
107
|
+
| macOS Intel | `macosx_10_13_x86_64` |
|
|
108
|
+
| macOS Apple Silicon | `macosx_11_0_arm64` |
|
|
109
|
+
|
|
110
|
+
Requires Python 3.8+.
|
|
111
|
+
|
|
112
|
+
## Links
|
|
113
|
+
|
|
114
|
+
- Homepage: https://pdfix.net
|
|
115
|
+
- Releases / issues: https://github.com/pdfix/pdfix_sdk_builds
|
|
116
|
+
- License / terms: https://pdfix.net/terms
|
|
117
|
+
|
|
118
|
+
## License
|
|
119
|
+
|
|
120
|
+
PDFix SDK Lite is licensed under Apache 2.0. Other versions of the PDFix SDK
|
|
121
|
+
are licensed under the terms published at https://pdfix.net/terms.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
pdfix_cli/__init__.py,sha256=WPz1GmAXvJq8WfOv1QoAvxFbPYBN-mtGvN8GYvTi6jY,517
|
|
2
|
+
pdfix_cli/__main__.py,sha256=Rb2rEqvjl6eaNAnVvKbTvOOyF1weMoLnzk61RdmtGbw,650
|
|
3
|
+
pdfix_cli/_paths.py,sha256=EaWNC1SjCTEkcgjHVQZ8wFiGvD3eVt50VWvFAyRx8Kc,3272
|
|
4
|
+
pdfix_cli/_runner.py,sha256=GhP5sGu0v8y568iHqSVgfpLFL75y_8_Y1Y6zEgO8Ujw,1820
|
|
5
|
+
pdfix_cli/runtime/LICENSE.txt,sha256=mVevYPXgRpPpew5RgebXzILql48N4oe1_3dGFDZ2L9c,286
|
|
6
|
+
pdfix_cli/runtime/README.txt,sha256=E2tqRY0M16YtbZ5HMrY6JU7BapVqjdJg_yqye-eQzo8,78
|
|
7
|
+
pdfix_cli/runtime/version.txt,sha256=o9RJ35mgYm0x_Oj1sHRF8Q98ZlWD_xDpnSat-I_I3ZQ,5
|
|
8
|
+
pdfix_cli/runtime/bin/x86_64/LicenseSpringVMD.dll,sha256=JCRHVOqls_36pslgVmjQmnxxFm4sOK912kzJoZhHsIw,731120
|
|
9
|
+
pdfix_cli/runtime/bin/x86_64/pdf.dll,sha256=OdNaEOFSKPo93xh9a8vU8uPlZ_5N6ImntJF1ZybJd9U,17754152
|
|
10
|
+
pdfix_cli/runtime/bin/x86_64/pdfix_app.exe,sha256=3drZjj6Yng6vl10PZEOC2yOSLbGWhOZdGvoLVjgTu3g,1214504
|
|
11
|
+
pdfix_cli/runtime/resources/fix_metadata.json,sha256=ZzPEn22aQR6XCpZsD0iWobuwwElnBjBbrMBGeUL5M0E,2409
|
|
12
|
+
pdfix_cli/runtime/resources/make_accessible.json,sha256=8UypILq_qAr3Tm6DX5BA-CoYzdmsXaZB9iVG9VFl-qo,21709
|
|
13
|
+
pdfix_cli/runtime/resources/pdf_action.json,sha256=Drnbdji8h2mssXKSolrAWFSdRv8VpvUc3mwn5BnOoKM,124868
|
|
14
|
+
pdfix_cli/runtime/resources/pdf_config.json,sha256=iBbf3Xx6kV-oAgxtX1tEeYSlxdOjirBpVxNpPjehFTU,212005
|
|
15
|
+
pdfix_cli/runtime/resources/pdfix_settings.json,sha256=jOn0fL6R8NEbA4LEcZwT-qFBuWR6rQlRTDRW0r1078c,1295
|
|
16
|
+
pdfix_cli/runtime/resources/quick_fix.json,sha256=Ywqi2y7iLlS9P8WVVDrhKyS5_d2VnteIu1FXJRnZZlg,4091
|
|
17
|
+
pdfix_cli-9.1.1.dist-info/licenses/LICENSE,sha256=P8Q5XmHOUkHaS9052A43kmI_MdDNwmpZ-PEwyXmBy_4,288
|
|
18
|
+
pdfix_cli-9.1.1.dist-info/METADATA,sha256=5Ukyvyy1Nvfo8JgaS-nimm6nm_S1_a-1vOWlyX8Jvm0,4341
|
|
19
|
+
pdfix_cli-9.1.1.dist-info/WHEEL,sha256=hVx9elvUDfBjRmbl8JwIcXXikst35RZTZK9nspfI_28,98
|
|
20
|
+
pdfix_cli-9.1.1.dist-info/entry_points.txt,sha256=HjFNbU09Ql4FMGrmsDyVuGPJxidE6jmkyH--NnXlLa8,122
|
|
21
|
+
pdfix_cli-9.1.1.dist-info/top_level.txt,sha256=smkVpytjlaGY0lJNM-2TncGXWvlr-lIPTne3XRZ-DW8,10
|
|
22
|
+
pdfix_cli-9.1.1.dist-info/RECORD,,
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
PDFix SDK Lite is licensed under Apache 2.0 license https://www.apache.org/licenses/LICENSE-2.0.
|
|
2
|
+
Other versions of the PDFix SDK are licenses under license published on https://pdfix.net/terms.
|
|
3
|
+
|
|
4
|
+
For more information about the PDFix SDK versions please visit https://pdfix.net/pricing
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
pdfix_cli
|