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.3.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.3-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pdffonts_python-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 943cd81a8df4e00922d7db87a144ccc339322b0515e23209838a2dfd06683e9d
MD5 d673b52e9663cedbf98a362c0b7d678a
BLAKE2b-256 9f675b104d7a9778f67ddad3ad164584e5064a0921acc144f1ec2e11b9875239

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pdffonts_python-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 974f411803d1b2be3732c6053d47262b91c2f5e4f57aa915c4c655ce0d86018f
MD5 16e163d224e4dc6851f1802cae8017db
BLAKE2b-256 f007922dca943e9600232dda62709e4dcdadc73aa38254aa614e17efa1ecdcd9

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