File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -197,20 +197,13 @@ import ImageItem from './Components/Image.vue'
197197import TextItem from ' ./Components/TextItem.vue'
198198import Drawing from ' ./Components/Drawing.vue'
199199import DrawingCanvas from ' ./Components/DrawingCanvas.vue'
200- import {
201- readAsImage ,
202- readAsPDF ,
203- readAsDataURL ,
204- } from ' ./utils/asyncReader.js'
200+ import { readAsImage , readAsPDF , readAsDataURL } from ' ./utils/asyncReader.js'
205201import { save } from ' ./utils/PDF.js'
206202import ImageIcon from ' vue-material-design-icons/Image.vue'
207203import TextIcon from ' vue-material-design-icons/Text.vue'
208204import GestureIcon from ' vue-material-design-icons/Gesture.vue'
209205import PencilIcon from ' vue-material-design-icons/Pencil.vue'
210206
211- import * as pdfjsLib from ' pdfjs-dist'
212- pdfjsLib .GlobalWorkerOptions .workerSrc = require (' pdfjs-dist/build/pdf.worker' )
213-
214207export default {
215208 name: ' VuePdfEditor' ,
216209 components: {
Original file line number Diff line number Diff line change 11import * as pdfjsLib from 'pdfjs-dist'
2+ pdfjsLib . GlobalWorkerOptions . workerSrc = require ( 'pdfjs-dist/build/pdf.worker' )
23
34/**
45 *
You can’t perform that action at this time.
0 commit comments