Reading PDF metadata in PHP

后端 未结 6 1531
你的背包
你的背包 2020-12-08 17:55

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 meta

6条回答
  •  孤城傲影
    2020-12-08 18:21

    Don't know about libraries, but a simple way to achieve the same result might be fopening the file and parsing everything that comes after the last "endstream".

    Try to open a pdf on a text editor, a parser shouldn't take more than five lines.

提交回复
热议问题