llkacooking.blogg.se

Python pdf creator
Python pdf creator








python pdf creator

Pdf_redactor.py processes a PDF given on standard input and writes a new, redacted PDF to standard output: python3 pdf_redactor.py document-redacted.pdf

python pdf creator

Get this module and then install its dependencies with: pip3 install -r requirements.txt Rewrite, remove, or add XML metadata using functions that operate on the parsed XMP DOM (e.g.wipe out all metadata except for certain fields). Rewrite, remove, or add new metadata fields on a field-by-field basis (e.g.replace social security numbers with "XXX-XX-XXXX"). Use regular expressions to perform text substitution on the text layer (e.g.Graphical elements, images, and other embedded resources are not touched. the Document Information Dictionary, a.k.a.the text layer of the document's pages (content stream text).This Python module is a general tool to help you automatically redact text from PDFs. Pdf-redactor uses pdfrw under the hood to parse and write out the PDF. A general-purpose PDF text-layer redaction tool, in pure Python, by Joshua Tauberer and Antoine McGrath.










Python pdf creator