Skip to content

Instantly share code, notes, and snippets.

Mark Ayzenshtadt smblance

Block or report user

Report or block smblance

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@smblance
smblance / gist:fe8cc625563b53529b4e
Created Jan 19, 2016 — forked from tiarno/gist:8a2995e70cee42f01e79
find PDF font info with PyPDF2, example code
View gist:fe8cc625563b53529b4e
from PyPDF2 import PdfFileReader
from pprint import pprint
def walk(obj, fnt, emb):
'''
If there is a key called 'BaseFont', that is a font that is used in the document.
If there is a key called 'FontName' and another key in the same dictionary object
that is called 'FontFilex' (where x is null, 2, or 3), then that fontname is
embedded.
You can’t perform that action at this time.