Reading PDF metadata in PHP
Posted
by
Mark Trapp
on Stack Overflow
See other posts from Stack Overflow
or by Mark Trapp
Published on 2010-12-20T19:37:50Z
Indexed on
2010/12/22
0:54 UTC
Read the original article
Hit count: 211
I'm trying to read metadata attached to arbitrary PDFs: title, author, subject, and keywords.
Is there a PHP library, preferably open-source, that can read PDF metadata? If so, or if there isn't, how would one use the library (or lack thereof) to extract the metadata?
To be clear, I'm not interested in creating or modifying PDFs or their metadata, and I don't care about the PDF bodies. I've looked at a number of libraries, including FPDF (which everyone seems to recommend), but it appears only to be for PDF creation, not metadata extraction.
© Stack Overflow or respective owner