mozilla / pdf.js

PDF Reader in JavaScript
https://mozilla.github.io/pdf.js/
Apache License 2.0
48.33k stars 9.97k forks source link

Subject & Keywords #9163

Closed SehyunPark closed 6 years ago

SehyunPark commented 6 years ago

Attach (recommended) or Link to PDF file here: 1.pdf

Configuration:

What went wrong? (add screenshot) image

--> There's no keywords and subjects (all those two lines are empty)

What is the expected behavior? (add screenshot) --> I want to know the real function of 'keywords' and 'subjects' and I'm curious if those two parts are truly customized on entering any words by us users, / or if those are totally determined by the author (which those have authorized access).

Kind explanation are truly grateful for me. Thank you.

Snuffleupagus commented 6 years ago

There's no keywords and subjects (all those two lines are empty)

This information is fetched from the Info dictionary of the PDF file itself, and in that particular file that information isn't provided. You can open the file with http://brendandahl.github.io/pdf.js.utils/browser/, which is a tool that allow you to explore the structure/contents of PDF files.

Also, please refer to the PDF specification for further details on the PDF format in general. And in this particular case: http://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/PDF32000_2008.pdf#M13.9.24061.1Heading.82.Info.Dictionaries.

or if those are totally determined by the author (which those have authorized access).

Yes, this information is provided (or not) by the person/software that create the PDF file.

Closing as answered.