scinote-web/app/javascript/packs/pdfjs/pdf_js.js
2020-12-22 15:25:30 +01:00

4 lines
131 B
JavaScript

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