galkahana / HummusJS

Node.js module for high performance creation, modification and parsing of PDF files and streams
http://www.pdfhummus.com
Other
1.15k stars 170 forks source link

Read PDF Tags #203

Closed kakato10 closed 7 years ago

kakato10 commented 7 years ago

Is there a way to read the PDF Tags (keywords) using hummus. I read the documentation and didn't find anything about it.

kakato10 commented 7 years ago

Found it! If anyone else is looking for it:

pdfReader.queryDictionaryObject(pdfReader.getTrailer(), "Info").toJSObject()

Returns an object that contains them