filetype.py icon indicating copy to clipboard operation
filetype.py copied to clipboard

PDF file won't begin with '%PDF-X.Y'

Open EdiMel opened this issue 3 years ago • 0 comments

I found a PDF file that begin with the sequence:

firmas_t/1082774737.png%PDF-1.7

So, the method filetype.match returns None. According to this stackoverflow answer, some programs can generate this, but are still valid PDF files. It's possible to extend support for this files ?

EdiMel avatar Jun 15 '22 01:06 EdiMel