You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
title: Import Export Annotation in EJ2 ASP.NET MVC PDF Viewer | Syncfusion
4
+
description: Learn how to Import Export Annotation in ASP.NET MVC PDF Viewer component of Syncfusion Essential JS 2 and more.
5
+
platform: ej2-asp-core-mvc
6
+
control: Import Export Annotation Object
7
+
publishingplatform: ##Platform_Name##
8
+
documentation: ug
9
+
---
10
+
11
+
12
+
# Import and Export annotation
13
+
14
+
The PDF Viewer library allows you to import annotations from objects or streams instead of loading it as a file. To import such annotation objects, the PDF Viewer control must export the PDF annotations as objects using the [**ExportAnnotationsAsObject()**](https://ej2.syncfusion.com/documentation/api/pdfviewer/#exportannotationsasobject) method. Only the annotations objects that are exported from the PDF Viewer can be imported.
15
+
16
+
The following steps are used to import and export annotations in various formats such as objects, JSON, and XFDF.
17
+
18
+
**Step 1:** Follow the steps provided in the [link](https://ej2.syncfusion.com/aspnetmvc/documentation/pdfviewer/getting-started/) to create a simple PDF Viewer sample.
19
+
20
+
**Step 2:** Use the following code snippet to perform import and export annotation.
21
+
22
+
```html
23
+
<buttontype="button"onclick="exportAsJson()">Export Annotation As Json</button>
24
+
<buttontype="button"onclick="exportAsXfdf()">Export Annotation As Xfdf</button>
Copy file name to clipboardExpand all lines: ej2-asp-core-mvc/pdfviewer/EJ2_ASP.NETCORE/how-to/import-export-annotation.md
+29-5Lines changed: 29 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,18 @@
1
1
---
2
2
layout: post
3
-
title: Import Export Annotation Object in ##Platform_Name## Pdfviewer Component
3
+
title: Import Export Annotation in ##Platform_Name## Pdfviewer Component | Syncfusion
4
4
description: Learn here all about Import Export Annotation Object in Syncfusion ##Platform_Name## Pdfviewer component of Syncfusion Essential JS 2 and more.
5
5
platform: ej2-asp-core-mvc
6
6
control: Import Export Annotation Object
7
7
publishingplatform: ##Platform_Name##
8
8
documentation: ug
9
9
---
10
10
11
-
# Import and Export annotation as object
11
+
# Import and Export annotation
12
12
13
13
The PDF Viewer library allows you to import annotations from objects or streams instead of loading it as a file. To import such annotation objects, the PDF Viewer control must export the PDF annotations as objects using the [**ExportAnnotationsAsObject()**](https://ej2.syncfusion.com/documentation/api/pdfviewer/#exportannotationsasobject) method. Only the annotations objects that are exported from the PDF Viewer can be imported.
14
14
15
-
The following steps are used to import and export annotation as object.
15
+
The following steps are used to import and export annotations in various formats such as objects, JSON, and XFDF.
16
16
17
17
**Step 1:** Follow the steps provided in the [link](https://ej2.syncfusion.com/aspnetcore/documentation/pdfviewer/getting-started/) to create a simple PDF Viewer sample.
18
18
@@ -26,6 +26,8 @@ The following steps are used to import and export annotation as object.
26
26
ViewData["Title"] = "Home page";
27
27
}
28
28
29
+
<buttontype="button"onclick="exportAsJson()">Export Annoatation As Json</button>
30
+
<buttontype="button"onclick="exportAsXfdf()">Export Annoatation As Xfdf</button>
0 commit comments