I am trying to read metadata attached to arbitrary PDF files: title, author, subject and keywords.
Is there a PHP library, preferably open source, that can read PDF metadata? If so, or if not, how can I use the library (or lack thereof) to retrieve metadata?
To be clear, I'm not interested in creating or modifying PDF files or their metadata, and I don't need PDF bodies. I looked at several libraries, including FPDF (which everyone seems to recommend), but it seems to be intended only for creating PDFs and not for extracting metadata.
user113292
source share