Skip to main content

Simple PDF editing made fast

Project description

Examples of How To Use

from PDFpy import PDF

# load two PDFs
a = PDF("example1.pdf")
b = PDF("example2.pdf")

# delete every other page from a
del a[::2]

# delete page 3 4 and 7 from b
del b[[3, 4, 7]]

# replace Page 3 from a with page 5 from b
a[3] = b[5]

# merge the first 10 pages of a with all but the first 13 pages of b
c = a[:10] + b[13:]

# save c as "example3.pdf"
c.save("example3.pdf")

github: https://github.com/JonasHri/PDFpy

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

PDFpy-0.0.35.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

PDFpy-0.0.35-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file PDFpy-0.0.35.tar.gz.

File metadata

  • Download URL: PDFpy-0.0.35.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.4

File hashes

Hashes for PDFpy-0.0.35.tar.gz
Algorithm Hash digest
SHA256 7e5e54237ab84e30e92a51cd9ef5ef028caf29052525f9cd6a8189119d53653d
MD5 7d0ca7384155363786d9f1b0a66a4e6d
BLAKE2b-256 12ed3736acc638a469dbc5d41c1f81aae3bf50c6b6f4970925cdc936aca224c9

See more details on using hashes here.

File details

Details for the file PDFpy-0.0.35-py3-none-any.whl.

File metadata

  • Download URL: PDFpy-0.0.35-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.4

File hashes

Hashes for PDFpy-0.0.35-py3-none-any.whl
Algorithm Hash digest
SHA256 ac49fdd56cd358c4257bbdf1ed47a0937c0d7fbd2c70015299f4393e326fcff0
MD5 02a09744231111efb0de4759155417d7
BLAKE2b-256 b81658668ea7f4b3e4b74efba096d73b67ea14b904d89f946162bb53a07ec6a1

See more details on using hashes here.

Supported by

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