hyperboria/nexus/pylon/pdftools/__init__.py

3 lines
58 B
Python
Raw Normal View History

def is_pdf(f):
return len(f) > 4 and f[:4] == b'%PDF'