1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

Added #getFingerprint method to PDFDocModel

This commit is contained in:
Saebekassebil 2011-12-22 23:44:42 +01:00
parent d44f9f2074
commit 0de0e92bc4
2 changed files with 20 additions and 5 deletions

View file

@ -347,7 +347,7 @@ var PDFView = {
pagesRefMap[pageRef.num + ' ' + pageRef.gen + ' R'] = i;
}
var id = pdf.fileID;
var id = pdf.fingerprint;
if (id) {
var scroll = Settings.get(id + '.scroll', -1);
if (scroll != -1) {
@ -895,9 +895,9 @@ function updateViewarea() {
window.addEventListener('scroll', function webViewerScroll(evt) {
updateViewarea();
var fileID;
if((fileID = PDFView.pages[0].content.pdf.fileID)) {
Settings.set(fileID+'.scroll', window.pageYOffset);
var id;
if((id = PDFView.pages[0].content.pdf.fingerprint)) {
Settings.set(id+'.scroll', window.pageYOffset);
}
}, true);