From e9394085c71a9f9080e2b8fe88818bcd2208a82a Mon Sep 17 00:00:00 2001 From: SF4524LogeshKumar Date: Tue, 7 Jan 2025 16:59:53 +0530 Subject: [PATCH 1/2] 380623: Updated UG documentation for Import and Export annotation --- .../how-to/import-export-annotation-object.md | 43 --------------- .../how-to/import-export-annotation.md | 55 +++++++++++++++++++ ...-object.md => import-export-annotation.md} | 34 ++++++++++-- ej2-asp-core-toc.html | 2 +- ej2-asp-mvc-toc.html | 2 +- 5 files changed, 86 insertions(+), 50 deletions(-) delete mode 100644 ej2-asp-core-mvc/pdfviewer/EJ2_ASP.MVC/how-to/import-export-annotation-object.md create mode 100644 ej2-asp-core-mvc/pdfviewer/EJ2_ASP.MVC/how-to/import-export-annotation.md rename ej2-asp-core-mvc/pdfviewer/EJ2_ASP.NETCORE/how-to/{import-export-annotation-object.md => import-export-annotation.md} (71%) diff --git a/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.MVC/how-to/import-export-annotation-object.md b/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.MVC/how-to/import-export-annotation-object.md deleted file mode 100644 index 48a1a6d93e..0000000000 --- a/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.MVC/how-to/import-export-annotation-object.md +++ /dev/null @@ -1,43 +0,0 @@ ---- -layout: post -title: Import Export Annotation in EJ2 ASP.NET MVC PDF Viewer | Syncfusion -description: Learn how to Import Export Annotation Object in ASP.NET MVC PDF Viewer component of Syncfusion Essential JS 2 and more. -platform: ej2-asp-core-mvc -control: Import Export Annotation Object -publishingplatform: ej2-asp-core-mvc -documentation: ug ---- - - -# Import and Export annotation as object - -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. - -The following steps are used to import and export annotation as object. - -**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. - -**Step 2:** Use the following code snippet to perform import and export annotation. - -```html - - - - -``` - -Find the Sample, [how to import and export annotation as object](https://www.syncfusion.com/downloads/support/directtrac/general/ze/EJ2MvcSample-654457926.zip) \ No newline at end of file diff --git a/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.MVC/how-to/import-export-annotation.md b/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.MVC/how-to/import-export-annotation.md new file mode 100644 index 0000000000..6df0ff6663 --- /dev/null +++ b/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.MVC/how-to/import-export-annotation.md @@ -0,0 +1,55 @@ +--- +layout: post +title: Import Export Annotation in EJ2 ASP.NET MVC PDF Viewer | Syncfusion +description: Learn how to Import Export Annotation in ASP.NET MVC PDF Viewer component of Syncfusion Essential JS 2 and more. +platform: ej2-asp-core-mvc +control: Import Export Annotation Object +publishingplatform: ej2-asp-core-mvc +documentation: ug +--- + + +# Import and Export annotation + +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. + +The following steps are used to import and export annotations in various formats such as objects, JSON, and XFDF. + +**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. + +**Step 2:** Use the following code snippet to perform import and export annotation. + +```html + + + + + + +``` + +[View sample in GitHub](https://github.com/SyncfusionExamples/mvc-pdf-viewer-examples/tree/master/How%20to) \ No newline at end of file diff --git a/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.NETCORE/how-to/import-export-annotation-object.md b/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.NETCORE/how-to/import-export-annotation.md similarity index 71% rename from ej2-asp-core-mvc/pdfviewer/EJ2_ASP.NETCORE/how-to/import-export-annotation-object.md rename to ej2-asp-core-mvc/pdfviewer/EJ2_ASP.NETCORE/how-to/import-export-annotation.md index b866d47642..b3e9c883a9 100644 --- a/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.NETCORE/how-to/import-export-annotation-object.md +++ b/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.NETCORE/how-to/import-export-annotation.md @@ -1,6 +1,6 @@ --- layout: post -title: Import Export Annotation Object in ##Platform_Name## Pdfviewer Component +title: Import Export Annotation in ##Platform_Name## Pdfviewer Component description: Learn here all about Import Export Annotation Object in Syncfusion ##Platform_Name## Pdfviewer component of Syncfusion Essential JS 2 and more. platform: ej2-asp-core-mvc control: Import Export Annotation Object @@ -8,11 +8,11 @@ publishingplatform: ##Platform_Name## documentation: ug --- -# Import and Export annotation as object +# Import and Export annotation 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. -The following steps are used to import and export annotation as object. +The following steps are used to import and export annotations in various formats such as objects, JSON, and XFDF. **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. @@ -26,6 +26,8 @@ The following steps are used to import and export annotation as object. ViewData["Title"] = "Home page"; } + + @@ -38,7 +40,17 @@ The following steps are used to import and export annotation as object.