Avoiding pageRefMap is not defined in the getDestinationHash()
This commit is contained in:
parent
12d3a757ff
commit
c06697732f
@ -238,10 +238,10 @@ var PDFView = {
|
|||||||
pagesRefMap[pageRef.num + ' ' + pageRef.gen + ' R'] = i;
|
pagesRefMap[pageRef.num + ' ' + pageRef.gen + ' R'] = i;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.setScale(scale || kDefaultScale, true);
|
|
||||||
|
|
||||||
this.pagesRefMap = pagesRefMap;
|
this.pagesRefMap = pagesRefMap;
|
||||||
this.destinations = pdf.catalog.destinations;
|
this.destinations = pdf.catalog.destinations;
|
||||||
|
this.setScale(scale || kDefaultScale, true);
|
||||||
|
|
||||||
if (pdf.catalog.documentOutline) {
|
if (pdf.catalog.documentOutline) {
|
||||||
this.outline = new DocumentOutlineView(pdf.catalog.documentOutline);
|
this.outline = new DocumentOutlineView(pdf.catalog.documentOutline);
|
||||||
var outlineSwitchButton = document.getElementById('outlineSwitch');
|
var outlineSwitchButton = document.getElementById('outlineSwitch');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user