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 44 ViewData [" Title" ] = " Home page" ;
55}
66
7+ <button type =" button" onclick =" exportAsJson()" >Export Annoatation As Json</button >
8+ <button type =" button" onclick =" exportAsXfdf()" >Export Annoatation As Xfdf</button >
79<button type =" button" onclick =" exportAnnotation()" >Export Annoatation</button >
810<button type =" button" onclick =" importAnnotation()" >Import Annoatation</button >
911
2022<script type =" text/javascript" >
2123
2224 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+
2337 // Export annotation as object.
2438 function exportAnnotation () {
2539 var viewer = document .getElementById (' pdfviewer' ).ej2_instances [0 ];
You can’t perform that action at this time.
0 commit comments