How to get pdf title using pdf.js? [duplicate]
问题 This question already has answers here : JavaScript closures. Access in loop to current i, j variables [duplicate] (5 answers) Closed 4 years ago . The question is: How can I get the name of the pdf file using pdf.js? I'm running a variation of a pdf.js example from node, and I was wondering if it's at all possible to get it. I've been searching through pdf.js's docs/source, but couldn't find anything obvious. I'm using this code, which (so far) shows the number of pages of each file found on