A collection of tools for working with PDF files
Project description
PDFGEARS
A collection of Python tools for working with PDF files.
Distributed on PyPI as pdfgears; the importable package is
pdfgears.
Installation
pip install pdfgears
Features
- rmbmk: Remove PDF bookmarks (outline entries) whose title consists only of Arabic numerals (e.g. "1", "2.", "10"), while preserving the links/destinations of the remaining bookmarks.
Usage
Command-line
# List all available commands
pdfgears-info
# Remove numeric-only bookmarks, overwriting the input (keeps a .bak backup)
rmbmk -i input.pdf
# Remove numeric-only bookmarks, writing to a new file
rmbmk -i input.pdf -o output.pdf
# Process every PDF matched by the shell glob
rmbmk -i *.pdf
Python API
from pdfgears import rmbmk
# Remove numeric-only bookmarks from a PDF
rmbmk.remove_numeric_bookmarks("input.pdf", output_path="output.pdf")
Notes
rmbmkautomatically creates a.bakbackup of the original file whenever it overwrites it in place (i.e. when-o/--outputis omitted).-o/--outputcan only be used with a single-iinput file.
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
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 pdfgears-0.1.0.tar.gz.
File metadata
- Download URL: pdfgears-0.1.0.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f91b13168bd9876e8bc5e9b40e596e68295a4af8d524a287b4e5a98f2b7ffe5a
|
|
| MD5 |
451a0aa969ea3af3db3502db2088ec9d
|
|
| BLAKE2b-256 |
a1c768028d748daa64d71337703c1d8079506167fa7ba7277551e8955f68d086
|
Provenance
The following attestation bundles were made for pdfgears-0.1.0.tar.gz:
Publisher:
publish.yml on AaronOET/pdftoolbox
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pdfgears-0.1.0.tar.gz -
Subject digest:
f91b13168bd9876e8bc5e9b40e596e68295a4af8d524a287b4e5a98f2b7ffe5a - Sigstore transparency entry: 2102491267
- Sigstore integration time:
-
Permalink:
AaronOET/pdftoolbox@66f7113d9e988ac0aa3d6d9c93fa298add505197 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/AaronOET
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@66f7113d9e988ac0aa3d6d9c93fa298add505197 -
Trigger Event:
release
-
Statement type:
File details
Details for the file pdfgears-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pdfgears-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b5a25565acbb4f07421ca612131ace18de0bfa3b407378ddffea03f6d290bdd
|
|
| MD5 |
385bfdd2f125706a64f695d6a0a10846
|
|
| BLAKE2b-256 |
c8c8c91fa905a209d33ecc33d1d5d147e7465753c07be0d76a1d2ee9fe8ef48e
|
Provenance
The following attestation bundles were made for pdfgears-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on AaronOET/pdftoolbox
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pdfgears-0.1.0-py3-none-any.whl -
Subject digest:
7b5a25565acbb4f07421ca612131ace18de0bfa3b407378ddffea03f6d290bdd - Sigstore transparency entry: 2102491457
- Sigstore integration time:
-
Permalink:
AaronOET/pdftoolbox@66f7113d9e988ac0aa3d6d9c93fa298add505197 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/AaronOET
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@66f7113d9e988ac0aa3d6d9c93fa298add505197 -
Trigger Event:
release
-
Statement type: