A Python wrapper for the pdffonts command.
Project description
PDFFont Python Wrapper
This is a Python wrapper for the PDFFonts command line tool, which provides functionality for working with PDF fonts. The wrapper allows you to quickly list out the fonts in a PDF file along with their properties, such as font name, type, and encoding.
Installation
To install the PDFFonts Python wrapper, you can use pip:
pip install pdffonts-python
Usage
from pdffonts_python import PDFFonts
# Create an instance of PDFFonts
pdffonts = PDFFonts()
# List fonts in a PDF file
fonts = pdffonts.get_pdf_fonts("example.pdf")
print(fonts)
Example Output
[
{
"name": "AAAAAJ+Connections_Medium_CZEX0A80",
"type": "Type 1C",
"encoding": "Custom",
"embedded": "yes",
"subset": "yes",
"unicode": "yes",
"object": "12",
"id": "0"
},
{
"name": "AAAAAH+ConnectionsIta_CZEX0AC0",
"type": "Type 1C",
"encoding": "Custom",
"embedded": "yes",
"subset": "yes",
"unicode": "yes",
"object": "23",
"id": "0"
}
]
License
This project is licensed under the MIT License. See the LICENSE file for details.
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
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 pdffonts_python-0.1.5.tar.gz.
File metadata
- Download URL: pdffonts_python-0.1.5.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15d5055e6a1dd3bea435cd5af0c640b4a8bc35b56b2e14b4a83a9309556b3632
|
|
| MD5 |
403a55d7bce3f3eccd7adce8d320dfa6
|
|
| BLAKE2b-256 |
536baea60b1a5632c48645efbf73c256d83cc29f690c8a13968420c96baa34aa
|
File details
Details for the file pdffonts_python-0.1.5-py3-none-any.whl.
File metadata
- Download URL: pdffonts_python-0.1.5-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8374891cfcdfafa3969fcf29f2026f56fc678abade59bdcdd3547d541c652a54
|
|
| MD5 |
6875430052d68a123a6a2e49e7aac16b
|
|
| BLAKE2b-256 |
fb14e6228d4815f8e232a8a3fb293928fd85870dce60359523fc7073266dcd5c
|