Skip to main content

PDF utilities

Project description

PDFPlay

Watermark PDF files!



PDFPlay is a Python package that aims to provide easy-to-use utilities to manipulate PDF documents. Currently there's just one utility available, which is to "watermark" PDF files.

Get Started

Install it

>> pip install pdf-play

Play With It

>> watermark oto -t watermark text -i sample.pdf

Use It In Your Projects

from pdf_play import watermark

# set some variables
wm_text = 'use this text as the watermark!'
target_file = 'MyPC/Downloads/PDFFiles/sample.pdf'
output_file = 'MyPC/Downloads/PDFFiles/sample_watermarked.pdf'
font_name = 'Helvetica'
font_size = 'medium'
text_alignment = 'horizontal'

# call the watermark function
watermark(wm_text, target_file, output_file, font_name=font_name, 
font_size=font_size, text_alignment=text_alignment)

Features

🍥 Provides easy-to-use functions to code against and a neat CLI to work directly in your terminal.

🀄️ Provides a bunch of configurable options with each command to set things just right.

🌈 Designed to be flexible, provides easy intergration for new commands & user-options.

Dependencies

PyPDF4 >= 1.27.0

reportlab >= 3.6.1

Limitations

❗️ Requires Python >= 3.6

❗️ "watermark" is the only command available as of now.

Get Help

pdf-play -h
watermark -h

License

MIT

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

pdf-play-1.2.6.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

pdf_play-1.2.6-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

Details for the file pdf-play-1.2.6.tar.gz.

File metadata

  • Download URL: pdf-play-1.2.6.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.1

File hashes

Hashes for pdf-play-1.2.6.tar.gz
Algorithm Hash digest
SHA256 a006aeb70b968688914da588cde807d86e9a85e4d0aafbeebce2315b2a2898d3
MD5 a5c365f6f6de3c6928b4b39bc5d5a9ca
BLAKE2b-256 499e57a3364e244cde0b8cff14e65e5acf279e428df0d1edf63f06386123132b

See more details on using hashes here.

File details

Details for the file pdf_play-1.2.6-py3-none-any.whl.

File metadata

  • Download URL: pdf_play-1.2.6-py3-none-any.whl
  • Upload date:
  • Size: 14.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.1

File hashes

Hashes for pdf_play-1.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 929862826188191b8f2f16af04f1938979e6f18f5a6475b6ff18ba8c3926f869
MD5 fba7827ffc9a2db2887223443eaf930c
BLAKE2b-256 e6e980ecd8da6b7223be29038e6ae799b6d0f57d357c44f69f46f41c25bc2602

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