-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.vue
38 lines (31 loc) · 1.45 KB
/
app.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<template>
<ejs-pdfviewer
ref="pdfViewer"
:serviceUrl="serviceUrl"
:documentPath="documentPath">
</ejs-pdfviewer>
</template>
<script setup>
import { provide } from 'vue';
import { PdfViewerComponent as EjsPdfviewer, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView,
ThumbnailView, Print, TextSelection, TextSearch, Annotation, FormDesigner, FormFields } from '@syncfusion/ej2-vue-pdfviewer';
const serviceUrl = 'https://localhost:44309/pdfviewer';
const documentPath = 'PDF_Succinctly.pdf';
const pdfViewer = null;
provide('PdfViewer', [ Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView,
Print, TextSelection, TextSearch, Annotation, FormDesigner, FormFields]);
</script>
<style>
@import './node_modules/@syncfusion/ej2-base/styles/material.css';
@import './node_modules/@syncfusion/ej2-buttons/styles/material.css';
@import './node_modules/@syncfusion/ej2-dropdowns/styles/material.css';
@import './node_modules/@syncfusion/ej2-inputs/styles/material.css';
@import './node_modules/@syncfusion/ej2-navigations/styles/material.css';
@import './node_modules/@syncfusion/ej2-popups/styles/material.css';
@import './node_modules/@syncfusion/ej2-splitbuttons/styles/material.css';
@import './node_modules/@syncfusion/ej2-lists/styles/material.css';
@import './node_modules/@syncfusion/ej2-vue-pdfviewer/styles/material.css';
#pdfViewer {
height: 640px;
}
</style>