drewnoakes / metadata-extractor

Extracts Exif, IPTC, XMP, ICC and other metadata from image, video and audio files
Apache License 2.0
2.53k stars 473 forks source link

Add PDF support to detectFileType #665

Closed max-peroch closed 3 months ago

max-peroch commented 3 months ago

Fixes #666

Hello, it seems that FileTypeDetector.detectFileType was not able to detect PDF files, was there any reason to that?

This PR adds PDF to the list of files that can be detected.

I hope that's ok! This could be released as a patch version if that works for you.

Thank you,