Browse Source

Avoiding pageRefMap is not defined in the getDestinationHash()

notmasteryet 14 years ago
parent
commit
c06697732f
  1. 4
      web/viewer.js

4
web/viewer.js

@ -238,10 +238,10 @@ var PDFView = { @@ -238,10 +238,10 @@ var PDFView = {
pagesRefMap[pageRef.num + ' ' + pageRef.gen + ' R'] = i;
}
this.setScale(scale || kDefaultScale, true);
this.pagesRefMap = pagesRefMap;
this.destinations = pdf.catalog.destinations;
this.setScale(scale || kDefaultScale, true);
if (pdf.catalog.documentOutline) {
this.outline = new DocumentOutlineView(pdf.catalog.documentOutline);
var outlineSwitchButton = document.getElementById('outlineSwitch');

Loading…
Cancel
Save