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")
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e5e54237ab84e30e92a51cd9ef5ef028caf29052525f9cd6a8189119d53653d
|
|
| MD5 |
7d0ca7384155363786d9f1b0a66a4e6d
|
|
| BLAKE2b-256 |
12ed3736acc638a469dbc5d41c1f81aae3bf50c6b6f4970925cdc936aca224c9
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac49fdd56cd358c4257bbdf1ed47a0937c0d7fbd2c70015299f4393e326fcff0
|
|
| MD5 |
02a09744231111efb0de4759155417d7
|
|
| BLAKE2b-256 |
b81658668ea7f4b3e4b74efba096d73b67ea14b904d89f946162bb53a07ec6a1
|