Skip to main content

A package to process PDFs for testing colorblind accessibility.

Project description

colorblind_pdf

PyPI Python Version License Downloads Issues Pull Requests

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:

merged example

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

colorblind_pdf-0.2.0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

colorblind_pdf-0.2.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file colorblind_pdf-0.2.0.tar.gz.

File metadata

  • Download URL: colorblind_pdf-0.2.0.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for colorblind_pdf-0.2.0.tar.gz
Algorithm Hash digest
SHA256 9066ad2b0b21be6a7a4c981dd3e90735f9ebda960e81713325a952176b986fd4
MD5 9570e2581a6af6a0b3c18e731b7f675d
BLAKE2b-256 5688bce0aeeb93e6a4772bf06d8fe91f37d1ebfa67ee3e30764b167b9877118e

See more details on using hashes here.

File details

Details for the file colorblind_pdf-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for colorblind_pdf-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9aba7fb3e3d12dfce71b8ecb7124136b563776a4528c6e8f58e396eff2fded8b
MD5 2ef15324614329c2998a47e6fe4c0484
BLAKE2b-256 c3304e7c6e352cb4dc5c3a46beaf723cdf1e2d4e65da07fb26cdea22b46bb921

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page