mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 01:35:43 +02:00
Add PageLabels to PDFPageView
and PDFThumbnailView
This commit is contained in:
parent
f461fd64aa
commit
efb9619e53
4 changed files with 55 additions and 2 deletions
|
@ -453,6 +453,12 @@ var PDFViewer = (function pdfViewer() {
|
|||
} else {
|
||||
this._pageLabels = labels;
|
||||
}
|
||||
// Update all the `PDFPageView` instances.
|
||||
for (var i = 0, ii = this._pages.length; i < ii; i++) {
|
||||
var pageView = this._pages[i];
|
||||
var label = this._pageLabels && this._pageLabels[i];
|
||||
pageView.setPageLabel(label);
|
||||
}
|
||||
},
|
||||
|
||||
_resetView: function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue