return str;
}
var obj = this.catDict.get('Outlines');
+ var xref = this.xref;
var root = { items: [] };
if (IsRef(obj)) {
- obj = this.xref.fetch(obj).get('First');
+ obj = xref.fetch(obj).get('First');
var processed = new RefSet();
if (IsRef(obj)) {
var queue = [{obj: obj, parent: root}];
processed.put(obj);
while (queue.length > 0) {
var i = queue.shift();
- var outlineDict = this.xref.fetch(i.obj);
+ var outlineDict = xref.fetch(i.obj);
if (!outlineDict.has('Title'))
error('Invalid outline item');
var dest = outlineDict.get('A');
if (dest)
- dest = this.xref.fetchIfRef(dest).get('D');
+ dest = xref.fetchIfRef(dest).get('D');
else if (outlineDict.has('Dest')) {
dest = outlineDict.get('Dest');
if (IsName(dest))
<div id="outlineView"></div>
</div>
<div id="sidebarControls">
- <button id="thumbsSwitch" onclick="PDFView.switchSidebarView('thumbs')" data-selected>
- <img src="images/nav-thumbs.svg" align="top" height="32" />
+ <button id="thumbsSwitch" title="Show Thumbnails" onclick="PDFView.switchSidebarView('thumbs')" data-selected>
+ <img src="images/nav-thumbs.svg" align="top" height="32" alt="Thumbs" />
</button>
- <button id="outlineSwitch" onclick="PDFView.switchSidebarView('outline')" disabled>
- <img src="images/nav-outline.svg" align="top" height="32" />
+ <button id="outlineSwitch" title="Show Document Outline" onclick="PDFView.switchSidebarView('outline')" disabled>
+ <img src="images/nav-outline.svg" align="top" height="32" alt="Document Outline" />
</button>
</div>
</div>