scinote-web/app/javascript/packs/pdfjs/pdf_js.js

5 lines
131 B
JavaScript
Raw Normal View History

global.pdfjsLib = require('pdfjs-dist');
global.pdfjsLibUtils = require('pdfjs-dist/web/pdf_viewer.js');
PdfPreview.initCanvas();