File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
How to/Import and Export annotation as object/Pages Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 4
4
ViewData [" Title" ] = " Home page" ;
5
5
}
6
6
7
+ <button type =" button" onclick =" exportAsJson()" >Export Annoatation As Json</button >
8
+ <button type =" button" onclick =" exportAsXfdf()" >Export Annoatation As Xfdf</button >
7
9
<button type =" button" onclick =" exportAnnotation()" >Export Annoatation</button >
8
10
<button type =" button" onclick =" importAnnotation()" >Import Annoatation</button >
9
11
20
22
<script type =" text/javascript" >
21
23
22
24
var exportObject;
25
+
26
+ // Export annotation as Json
27
+ function exportAsJson (){
28
+ var viewer = document .getElementById (' pdfviewer' ).ej2_instances [0 ];
29
+ viewer .exportAnnotation (' Json' );
30
+ }
31
+ // Export annotation as Xfdf
32
+ function exportAsXfdf (){
33
+ var viewer = document .getElementById (' pdfviewer' ).ej2_instances [0 ];
34
+ viewer .exportAnnotation (' Xfdf' );
35
+ }
36
+
23
37
// Export annotation as object.
24
38
function exportAnnotation () {
25
39
var viewer = document .getElementById (' pdfviewer' ).ej2_instances [0 ];
You can’t perform that action at this time.
0 commit comments