footerContents += '</div>';
attrs += ' data-max-width="' + width + '" ';
cls = 'pdf';
- view = '<div class="content"><div class="pdfarticle-holder" style="max-width: ' + width + 'px;max-height: ' + height + 'px;width: ' + width + 'px;height: ' + height + 'px;">' + '<iframe class="pdfarticle view" frameborder="0" scrolling="no" width="' + iwidth + '" height="' + iheight + '" src="pdfjs/web/viewer.html?&file=../../data/links/' + article.content + '#zoom=' + zoom + ',0,0"></iframe>' + '<iframe class="pdfarticle print" frameborder="0" scrolling="no" width="' + iwidth + '" height="' + iheight + '" src="pdfjs/web/viewer.html?&file=../../data/links/' + article.printcontent + '#zoom=' + zoom + ',0,0"></iframe>' + '</div></div>';
+ view = '<div class="content"><div class="pdfarticle-holder" style="max-width: ' + width + 'px;max-height: ' + height + 'px;width: ' + width + 'px;height: ' + height + 'px;">' + '<iframe class="pdfarticle view" frameborder="0" scrolling="no" width="' + iwidth + '" height="' + iheight + '" src="pdfjs/web/viewer.' + this.fluidbook.settings.htmlExtension + '?&file=../../data/links/' + article.content + '#zoom=' + zoom + ',0,0"></iframe>' + '<iframe class="pdfarticle print" frameborder="0" scrolling="no" width="' + iwidth + '" height="' + iheight + '" src="pdfjs/web/viewer.' + this.fluidbook.settings.htmlExtension + '?&file=../../data/links/' + article.printcontent + '#zoom=' + zoom + ',0,0"></iframe>' + '</div></div>';
} else {
view = '<div class="content">' + article.contents + '</div>';
}
$(this).on('load', function () {
var $iframe = this;
- if (!$this.initIframe($iframe,view)) {
+ if (!$this.initIframe($iframe, view)) {
$this.initPDFJSIframeInterval = setInterval(function () {
- $this.initIframe($iframe,view);
+ $this.initIframe($iframe, view);
}, 100);
}
});
},
- initIframe: function (iframe,view) {
+ initIframe: function (iframe, view) {
var body = $(iframe).contents().find('body');
if ($(body).length === 0) {
return false;
let $this = this;
var infos = this.fluidbook.settings.pdfLinks[uid];
let c = this.getCaption('', 'nocaption', 'nocaption');
- c += '<div class="content"><div class="pdf-holder"><iframe class="pdf view ' + infos.interface + '" data-width="' + infos.width + '" data-height="' + infos.height + '" data-total-height="' + infos.totalHeight + '" frameborder="0" scrolling="no" src="pdfjs/web/viewer.html?&file=../../data/links/' + infos.file + '#zoom=page-width"></iframe></div></div>';
+ c += '<div class="content"><div class="pdf-holder"><iframe class="pdf view ' + infos.interface + '" data-width="' + infos.width + '" data-height="' + infos.height + '" data-total-height="' + infos.totalHeight + '" frameborder="0" scrolling="no" src="pdfjs/web/viewer.'+this.fluidbook.settings.htmlExtension+'?&file=../../data/links/' + infos.file + '#zoom=page-width"></iframe></div></div>';
this.viewWrap(c, 'pdf', '', 'pdf');
if (callback != undefined) {
callback();