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.

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
redact_pdf-0.0.3.tar.gz 3.9 kB Details

Built distribution (wheel)

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

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

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

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