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.4.tar.gz (4.0 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.4-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pdffonts_python-0.1.4.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

Hashes for pdffonts_python-0.1.4.tar.gz
Algorithm Hash digest
SHA256 03aa53b18d9ea1434b638404c4d9d21d5b3bfe95d2cb40d9f873384679276c2c
MD5 bfc810450375d9b069a444d23a0820d9
BLAKE2b-256 c52132f1c7b6838326e8ba4a33d0780270209b6ea44e7b152be4bd546706b1ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pdffonts_python-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6129e516e799c750b92f4380bb2a972de8bd5efb1eb0bb173b077a71db1e1bc8
MD5 ad51670e5da80efb0b7d8a5a94cc000b
BLAKE2b-256 4d8741aa3f957b099b3fc74c1c51484eb32dbd42021ab303a98e3941ec01c3d2

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