mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 10:15:37 +02:00
Address review comments.
This commit is contained in:
parent
29263836c2
commit
70e415900c
2 changed files with 2 additions and 3 deletions
|
@ -403,7 +403,7 @@ var PDFDocument = (function PDFDocumentClosure() {
|
||||||
return true; /* found */
|
return true; /* found */
|
||||||
}
|
}
|
||||||
|
|
||||||
var DOCUMENT_INFO = {
|
var DocumentInfoValidators = {
|
||||||
get entries() {
|
get entries() {
|
||||||
// Lazily build this since all the validation functions below are not
|
// Lazily build this since all the validation functions below are not
|
||||||
// defined until after this file loads.
|
// defined until after this file loads.
|
||||||
|
@ -518,7 +518,7 @@ var PDFDocument = (function PDFDocumentClosure() {
|
||||||
var infoDict = this.xref.trailer.get('Info');
|
var infoDict = this.xref.trailer.get('Info');
|
||||||
|
|
||||||
docInfo = {};
|
docInfo = {};
|
||||||
var validEntries = DOCUMENT_INFO.entries;
|
var validEntries = DocumentInfoValidators.entries;
|
||||||
// Only fill the document info with valid entries from the spec.
|
// Only fill the document info with valid entries from the spec.
|
||||||
for (var key in validEntries) {
|
for (var key in validEntries) {
|
||||||
if (infoDict.has(key)) {
|
if (infoDict.has(key)) {
|
||||||
|
|
|
@ -1,2 +1 @@
|
||||||
http://www.environmentallights.com/files/documents/ir_light_hazard.pdf
|
http://www.environmentallights.com/files/documents/ir_light_hazard.pdf
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue