Skip to main content

redact-pdf

Release Build status codecov Commit activity License

Redact a phrase off a pdf file


Installation

pip install redact-pdf

Usage

Use the project in a python file

from redact_pdf.redact import TextRedactor

from pathlib import Path

pdf_file = Path(__file__).parent / "pdf_test.pdf"
save_path = Path(__file__).parent / "pdf_test_redacted.pdf"

tr = TextRedactor()
tr.redact_text(
	file_path=pdf_file,
	text_to_redact="XXX",
	output_file_name=save_path,
)

This will result in a .pdf file called pdf_test_redacted.pdf with the phrase XXX removed from every page.

Metadata

Release files for redact_pdf 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for redact_pdf 0.0.3
File Size Uploaded Provenance Actions
redact_pdf-0.0.3.tar.gz 3.9 kB Without provenance Details for redact_pdf-0.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for redact_pdf 0.0.3
File Interpreter ABI Platform Actions
redact_pdf-0.0.3-py3-none-any.whl Python 3 none any Details for redact_pdf-0.0.3-py3-none-any.whl

Total release size: 7.8 kB

Release files / redact_pdf-0.0.3.tar.gz

Download URL redact_pdf-0.0.3.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b9d564db9695d8d6e979c9f0c15146c2a8cc24b0d721d246224820f4597df116
BLAKE2b-256 checksum
How to use checksums
78fcc7e1d348b7bee8eea59124fab0f41240a1c569cb1158126364a662adf18f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.11.10 Linux/6.5.0-1025-azure

Release files / redact_pdf-0.0.3-py3-none-any.whl

Download URL redact_pdf-0.0.3-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0f23d1fdc245408fc02f52dfd589631981d7735c1b6dbea5934027f926f4a398
BLAKE2b-256 checksum
How to use checksums
eb6e009ee7ec2b81a1f254a8ad10926fb94f236a5a901f3a069cc3eb82bea5fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.11.10 Linux/6.5.0-1025-azure

Security for redact_pdf 0.0.3

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page