Is it possible to get metadata about the source document, such as Author?

64 views
Skip to first unread message

Ryan - PDFNet Developer

unread,
May 17, 2018, 7:05:54 PM5/17/18
to PDFTron WebViewer
Question:

PDF files can have metadata about the file, such as Title, Author, Keywords, etc. Is it possible to get this data from PDF? Even if I am loading a XOD file?

Answer:

Yes, you can use Document.getMetadata() to get a JSON data containing the following keys.

title
creator
producer
subject
keywords
description
created
modified

All data is optional, so expect "undefined" or empty strings, for any not defined in the PDF.
Reply all
Reply to author
Forward
0 new messages