Skip to content

Commit eca4092

Browse files
committed
915494: Resolved dependent bot issue for handwritten signature and print quality samples
1 parent 1899196 commit eca4092

File tree

6 files changed

+44
-40
lines changed

6 files changed

+44
-40
lines changed

How to/Add Handwritten Signature Programmatically/package.json

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "quickstart",
2+
"name": "handwritten_signature",
33
"version": "0.1.0",
44
"private": true,
55
"scripts": {
@@ -10,7 +10,12 @@
1010
"dependencies": {
1111
"@syncfusion/ej2-vue-pdfviewer": "*",
1212
"core-js": "^3.8.3",
13-
"vue": "^2.7.16"
13+
"vue": "^3.2.13",
14+
"buffer": "^6.0.3",
15+
"crypto-browserify": "^3.12.0",
16+
"stream-browserify": "^3.0.0",
17+
"util": "^0.12.5",
18+
"vm-browserify": "^1.1.2"
1419
},
1520
"devDependencies": {
1621
"@babel/core": "^7.12.16",
@@ -19,8 +24,7 @@
1924
"@vue/cli-plugin-eslint": "~5.0.0",
2025
"@vue/cli-service": "~5.0.0",
2126
"eslint": "^7.32.0",
22-
"eslint-plugin-vue": "^8.0.3",
23-
"vue-template-compiler": "^2.7.16"
27+
"eslint-plugin-vue": "^8.0.3"
2428
},
2529
"eslintConfig": {
2630
"root": true,
@@ -39,6 +43,7 @@
3943
"browserslist": [
4044
"> 1%",
4145
"last 2 versions",
42-
"not dead"
46+
"not dead",
47+
"not ie 11"
4348
]
4449
}

How to/Add Handwritten Signature Programmatically/src/App.vue

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,16 @@
1111
</template>
1212

1313
<script>
14-
import Vue from 'vue';
15-
import { PdfViewerPlugin, Toolbar, Magnification, Navigation,
14+
15+
import { PdfViewerComponent, Toolbar, Magnification, Navigation,
1616
LinkAnnotation, BookmarkView, Annotation, ThumbnailView,
1717
Print, TextSelection, TextSearch, FormFields, FormDesigner,PageOrganizer, DisplayMode } from '@syncfusion/ej2-vue-pdfviewer';
18-
Vue.use(PdfViewerPlugin);
1918
2019
export default {
21-
name: 'app',
20+
name: 'App',
21+
components: {
22+
"ejs-pdfviewer": PdfViewerComponent
23+
},
2224
data () {
2325
return {
2426
resourceUrl:"https://cdn.syncfusion.com/ej2/27.1.48/dist/ej2-pdfviewer-lib",
Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
import Vue from 'vue'
1+
import { createApp } from 'vue'
22
import App from './App.vue'
33

4-
Vue.config.productionTip = false
5-
6-
new Vue({
7-
render: h => h(App),
8-
}).$mount('#app')
4+
createApp(App).mount('#app')

How to/Customization of PrintQuality/package.json

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "quickstart",
2+
"name": "printquality",
33
"version": "0.1.0",
44
"private": true,
55
"scripts": {
@@ -10,7 +10,12 @@
1010
"dependencies": {
1111
"@syncfusion/ej2-vue-pdfviewer": "*",
1212
"core-js": "^3.8.3",
13-
"vue": "^2.7.16"
13+
"vue": "^3.2.13",
14+
"buffer": "^6.0.3",
15+
"crypto-browserify": "^3.12.0",
16+
"stream-browserify": "^3.0.0",
17+
"util": "^0.12.5",
18+
"vm-browserify": "^1.1.2"
1419
},
1520
"devDependencies": {
1621
"@babel/core": "^7.12.16",
@@ -19,8 +24,7 @@
1924
"@vue/cli-plugin-eslint": "~5.0.0",
2025
"@vue/cli-service": "~5.0.0",
2126
"eslint": "^7.32.0",
22-
"eslint-plugin-vue": "^8.0.3",
23-
"vue-template-compiler": "^2.7.16"
27+
"eslint-plugin-vue": "^8.0.3"
2428
},
2529
"eslintConfig": {
2630
"root": true,
@@ -39,6 +43,7 @@
3943
"browserslist": [
4044
"> 1%",
4145
"last 2 versions",
42-
"not dead"
46+
"not dead",
47+
"not ie 11"
4348
]
4449
}

How to/Customization of PrintQuality/src/App.vue

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
<template>
2-
<div id="app">
3-
<ejs-pdfviewer
4-
id="pdfViewer"
5-
:documentPath="documentPath"
6-
:serviceUrl="serviceUrl"
7-
:printScaleFactor="printScaleFactor"
8-
>
9-
</ejs-pdfviewer>
10-
</div>
2+
<ejs-pdfviewer
3+
id="pdfViewer"
4+
:documentPath="documentPath"
5+
:serviceUrl="serviceUrl"
6+
:printScaleFactor="printScaleFactor"
7+
>
8+
</ejs-pdfviewer>
119
</template>
1210

1311
<script>
14-
import Vue from 'vue';
15-
import { PdfViewerPlugin, Toolbar, Magnification, Navigation,
12+
import { PdfViewerComponent, Toolbar, Magnification, Navigation,
1613
Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
1714
Print, TextSelection, TextSearch, FormFields, FormDesigner, PageOrganizer } from '@syncfusion/ej2-vue-pdfviewer';
18-
Vue.use(PdfViewerPlugin);
1915
2016
export default {
21-
name: 'app',
17+
name: 'App',
18+
19+
components: {
20+
"ejs-pdfviewer": PdfViewerComponent
21+
},
2222
data() {
2323
return {
24-
serviceUrl: "https://services.syncfusion.com/vue/production/api/pdfviewer",
24+
serviceUrl: "https://localhost:44396/pdfviewer",
2525
documentPath: "https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf",
2626
//By Changing the printScaleFactor value we can adjust the quality of the PDF file.
2727
printScaleFactor: 0.5,
Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
import Vue from 'vue'
1+
import { createApp } from 'vue'
22
import App from './App.vue'
33

4-
Vue.config.productionTip = false
5-
6-
new Vue({
7-
render: h => h(App),
8-
}).$mount('#app')
4+
createApp(App).mount('#app')

0 commit comments

Comments
 (0)