Skip to content

Commit c83b257

Browse files
update to Document-Viewer-Javascript 2.0
1 parent c5fca6a commit c83b257

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ Review the complete code:
104104
<meta http-equiv="X-UA-Compatible" content="IE=edge">
105105
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
106106
<title>DDV - HelloWorld</title>
107-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/dynamsoft-document-viewer@2.0.0/dist/ddv.css">
108-
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-document-viewer@2.0.0/dist/ddv.js"></script>
107+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/dynamsoft-document-viewer@latest/dist/ddv.css">
108+
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-document-viewer@latest/dist/ddv.js"></script>
109109
</head>
110110
<style>
111111
html,body {
@@ -130,11 +130,12 @@ Review the complete code:
130130
// Public trial license which is valid for 24 hours
131131
// You can request a 30-day trial key from https://www.dynamsoft.com/customer/license/trialLicense/?product=mwc
132132
Dynamsoft.DDV.Core.license = "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9";
133-
Dynamsoft.DDV.Core.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-document-viewer@2.0.0/dist/engine";
133+
Dynamsoft.DDV.Core.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-document-viewer@latest/dist/engine";
134134
await Dynamsoft.DDV.Core.init();
135135
Dynamsoft.DDV.setProcessingHandler("imageFilter", new Dynamsoft.DDV.ImageFilter());
136136
const editViewer = new Dynamsoft.DDV.EditViewer({
137137
container: "container",
138+
uiConfig: Dynamsoft.DDV.getDefaultUiConfig("editViewer", {includeAnnotationSet: true}),
138139
});
139140
})();
140141
</script>
@@ -162,7 +163,7 @@ Data management is to manage the data which is imported into DDV. It is managed
162163

163164
Viewers are used to display the data. According to the different uses of viewers, DDV provides five different viewer types, which are implemented through five viewer classes.
164165

165-
- Edit Viewer: Edit the pages in document, such as, rotating, cropping, filtering, etc. and adjust the layout of the display.
166+
- Edit Viewer: Edit the pages in document, such as, rotating, cropping, filtering, annotating, etc. and adjust the layout of the display.
166167
- Capture Viewer: Control camera, play video stream, and capture the images from camera.
167168
- Perspective Viewer: Do page boundary manual adjustment & perspective transformation.
168169
- Browse Viewer: Display pages in multiple-mode, pages can be multiple selected.

0 commit comments

Comments
 (0)