Skip to main content

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

pdffonts_python-0.1.2.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pdffonts_python-0.1.2-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file pdffonts_python-0.1.2.tar.gz.

File metadata

  • Download URL: pdffonts_python-0.1.2.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.17

File hashes

Hashes for pdffonts_python-0.1.2.tar.gz
Algorithm Hash digest
SHA256 ca4c76660bf2b5854ebdf04f4d71fffadf4c6d5dcb0b510f523c9b8a265c3cfa
MD5 a53074a63bdb5da1d0ec3ffffe78ce49
BLAKE2b-256 caef66aed6cda7f072c1a42713167eb52a16decd863a7799ca41b8afd88e1a45

See more details on using hashes here.

File details

Details for the file pdffonts_python-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for pdffonts_python-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 60857493e5d67fcc2ac3ab1628dd73f00dde9cebff76097793bd3b01014ae016
MD5 962cee0bc0bf6bbb10bf6a55d72846cc
BLAKE2b-256 2e84e5b839ab65c5fe9c2700a6058e8b7c946ea9d02fdc2b58d08eec02a3f6db

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page