this.chromeBased = Modernizr.chrome || this.edge;
this.gpuInfos = this.getGPUInfos();
this.svgtocanvas = this.fluidbook.settings.svgToCanvas == 1 && this.IE === 0 && !(this.safari && this.macOs) && this.getGPUInfos().vendor.indexOf('intel') === -1 && this.getGPUInfos().vendor.indexOf('renderer') === -1;
- this.pdftocanvas = this.fluidbook.settings.svgToCanvas == 2;
+ this.pdftocanvas = window.pdfjsLib !== undefined && this.fluidbook.settings.svgToCanvas == 2;
// If in node-webkit or if the index.html fluidbook is locally open in a browser
this.offline = (typeof process !== "undefined" && process.versions['node-webkit']) || window.location.toString().indexOf("file://") == 0;