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 input.pdf
# Remove numeric-only bookmarks, writing to a new file
rmbmk input.pdf -o output.pdf
# Process every PDF matched by the shell glob
rmbmk *.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.
Metadata
Release files for pdfgears 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pdfgears-0.1.2.tar.gz | 5.3 kB | With provenance | Details for pdfgears-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pdfgears-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for pdfgears-0.1.2-py3-none-any.whl |
Total release size: 12.0 kB
Release files / pdfgears-0.1.2.tar.gz
| Download URL | pdfgears-0.1.2.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f976ae91e1365af6840a984e37cc314f107f44d6738c51b131e1925d6f351d74
|
|
BLAKE2b-256 checksum How to use checksums |
625368663ec869c64ae821c58500ccf10548f9ca0a01709c35c0bfc333a2f834
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.
Transparency logRelease files / pdfgears-0.1.2-py3-none-any.whl
| Download URL | pdfgears-0.1.2-py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3b6fe060f1ed3993b60eaaa046111f937935e7d03a321ad80d053b9162a5a798
|
|
BLAKE2b-256 checksum How to use checksums |
bc52b936d0da11117662e9c9e1f38c40cda56f1e05c467d48f20e8fbc7bf662d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.
Transparency logSecurity for pdfgears 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pdfgears-0.1.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.