colorblind_pdf
colorblind_pdf is a tool designed to test the accessibility of PDF documents for individuals with color vision deficiencies. It processes PDFs to simulate how the contained images would appear to someone with various types of color vision deficiencies, such as deuteranopia, protanopia, and tritanopia.
Installation
To install colorblind_pdf, use pipx for an isolated installation:
pipx install colorblind_pdf
Usage
To use colorblind_pdf, provide the path to the PDF you want to process, the output directory, and specify the type of color deficiency simulation. For example:
Most simple way:
colorblind_pdf my_document.pdf
Default values
-o/--output_dir: current directory ('.')
-d/--deficiency_type: all deficiencies ('all')
-D/--dpi: resolution (default: 150 DPI)
--merge: merge the outputs into a single file where each page is a mosaic
-O/--overlay: merged output will get an overlay over the subpages
The test.pdf with merged, overlayed output should look like this:
Contributing
Contributions are welcome! Feel free to open an issue or submit a pull request on our GitHub repository.
License
Distributed under the MIT License. See LICENSE for more information.
Metadata
Release files for colorblind-pdf 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| colorblind_pdf-0.2.0.tar.gz | 5.7 kB | Without provenance | Details for colorblind_pdf-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| colorblind_pdf-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for colorblind_pdf-0.2.0-py3-none-any.whl |
Total release size: 11.7 kB
Release files / colorblind_pdf-0.2.0.tar.gz
| Download URL | colorblind_pdf-0.2.0.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9066ad2b0b21be6a7a4c981dd3e90735f9ebda960e81713325a952176b986fd4
|
|
BLAKE2b-256 checksum How to use checksums |
5688bce0aeeb93e6a4772bf06d8fe91f37d1ebfa67ee3e30764b167b9877118e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Release files / colorblind_pdf-0.2.0-py3-none-any.whl
| Download URL | colorblind_pdf-0.2.0-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9aba7fb3e3d12dfce71b8ecb7124136b563776a4528c6e8f58e396eff2fded8b
|
|
BLAKE2b-256 checksum How to use checksums |
c3304e7c6e352cb4dc5c3a46beaf723cdf1e2d4e65da07fb26cdea22b46bb921
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Security for colorblind-pdf 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.