A ZipFile like API for PyMuPDF
Project description
PDFFile
A ZipFile like API for PDFs using PyMuPDF as a backend.
📜 News
PDFFile has a NEWS file to summarize changes that affect users.
🕸️ HTML Docs
HTML formatted docs are available here
📦 Dependencies
The pymupdf dependency usually has wheels that install a local version of libmupdf. But for some platforms (e.g. Windows) it may require libstdc++ and c/c++ build tools installed to compile a libmupdf. More detail on this is available in the pymupdf docs.
🧶 Data Types
MuPDF reads and writes all data types as strings. PDFFile automatically converts pdf date strings to python datetimes and pdf/xml boolean strings to python bools and back.
The helper functions to_datetime, to_pdf_date, to_bool, and to_xml_bool are available on the PDFFile class.
Installing on Linux on ARM (AARCH64) with Python 3.13
Pymupdf has no pre-built wheels for AARCH64 so pip must build it and the build fails on Python 3.13 without this environment variable set:
PYMUPDF_SETUP_PY_LIMITED_API=0 pip install comicbox-pdffile
You will also have to have the build-essential and python3-dev or equivalent
packages installed on on your Linux.
🛠️ API
Attached to these docs in the navigation header there are some auto generated API docs that might be better than nothing. But the code is really small and shouldn't be difficult to interpret.
🛠 Development
PDFfile code is hosted at Github
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 comicbox_pdffile-0.4.1.tar.gz.
File metadata
- Download URL: comicbox_pdffile-0.4.1.tar.gz
- Upload date:
- Size: 192.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a13488a70afc90190ab10651a1af64a2b864646ba751acf7ee35b83a337f8fa2
|
|
| MD5 |
178f682fddf2254e3955bbbb8eee1ae4
|
|
| BLAKE2b-256 |
dcdb129935318392159c67f52b6b1a6e380783549cb625022c75dc6d9e382521
|
File details
Details for the file comicbox_pdffile-0.4.1-py3-none-any.whl.
File metadata
- Download URL: comicbox_pdffile-0.4.1-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d724274c0273f465dc4ba19445a5ced799c3d6340aa0c133f27c88f84ef26a3f
|
|
| MD5 |
ac0561cb4de3c498b6feb2cd0d5f6bfa
|
|
| BLAKE2b-256 |
ce6f1f79f9a0697f7a38ed35fe74dcf57b0f90f35506c6fd39c55d03b293ab0e
|