load pdf at saved page

This commit is contained in:
j 2015-02-04 15:24:16 +05:30
parent 9a3c24b2ab
commit fad6788638

View file

@ -59,10 +59,10 @@ Ox.PDFViewer = function(options, self) {
.attr({ .attr({
frameborder: 0, frameborder: 0,
height: self.options.height + 'px', height: self.options.height + 'px',
src: self.options.pdfjsURL + '?file=' + self.options.url, src: self.options.pdfjsURL + '?file=' + self.options.url + '#page=' + self.options.page,
width: self.options.width + 'px' width: self.options.width + 'px'
}) })
.onMessage(function(event, data) { .onMessage(function(data, event) {
that.triggerEvent(event, data); that.triggerEvent(event, data);
}) })
.appendTo(that); .appendTo(that);
@ -77,7 +77,6 @@ Ox.PDFViewer = function(options, self) {
} }
function updateSize() { function updateSize() {
console.log('updateSize', self.options.width, self.options.height);
that.css({ that.css({
height: self.options.height + 'px', height: self.options.height + 'px',
width: self.options.width + 'px', width: self.options.width + 'px',