diff --git a/ej2-asp-core-mvc/Release-notes/28.2.3.md b/ej2-asp-core-mvc/Release-notes/28.2.3.md new file mode 100644 index 0000000000..1c0c4371c9 --- /dev/null +++ b/ej2-asp-core-mvc/Release-notes/28.2.3.md @@ -0,0 +1,16 @@ +--- +title: Essential Studio for ##Platform_Name## 2024 Volume 4 SP Release Release Notes +description: Essential Studio for ##Platform_Name## 2024 Volume 4 SP Release Release Notes +platform: ej2-asp-core-mvc +documentation: ug +--- + +# Essential Studio for ##Platform_Name## Release Notes + +{% include release-info.html date="January 29, 2025" version="v28.2.3" %} + +{% directory path: _includes/release-notes/v28.2.3 %} + +{% include {{file.url}} %} + +{% enddirectory %} \ No newline at end of file diff --git a/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.MVC/mobile-toolbar.md b/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.MVC/mobile-toolbar.md new file mode 100644 index 0000000000..c79e085dd3 --- /dev/null +++ b/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.MVC/mobile-toolbar.md @@ -0,0 +1,108 @@ +--- +layout: post +title: Mobile Toolbar Interface in ##Platform_Name## Pdfviewer Component| Syncfusion +description: Learn All About the Mobile Toolbar Interface in Syncfusion ##Platform_Name## Pdfviewer component of Syncfusion Essential JS 2 and more. +platform: ej2-asp-core-mvc +control: Mobile Toolbar Interface +documentation: ug +domainurl: ##DomainURL## +--- +# Mobile Toolbar Interface in ASP.NET MVC PDFViewer Control + +The Mobile PDF Viewer offers a variety of features for viewing, searching, annotating, and managing PDF documents on mobile devices. It includes essential tools like search, download, bookmarking, annotation, and page organization. Users also have the option to enable desktop toolbar features in mobile mode, providing a more extensive set of actions. + +## Mobile Mode Toolbar Configuration +In mobile mode, the toolbar is optimized for ease of use on small screens, presenting users with the most common actions for interacting with a PDF document. Below are the key features available in mobile mode: + +![Mobile toolbar with primary PDF interaction options](./images/mobileToolbar.png) + +### Main Toolbar Options: + +**OpenOption:** Tap to load a PDF document. + +**SearchOption:** Access the search bar to find text within the document. + +![Search bar displayed for finding text within a PDF](./images/searchOption.png) + +**UndoRedoTool:** Quickly undo or redo any annotations made. + +**OrganizePagesTool:** Enable or disable page organization features to modify document pages. + +![Page organization interface for modifying PDF pages](./images/organizePages.png) + +**AnnotationEditTool:** Activate or deactivate annotation editing to add or modify annotations. + +![Annotation editing toolbar allowing users to add, edit, or delete annotations on a PDF](./images/editAnnotation.png) + + +N> In mobile mode, the annotation toolbar is conveniently displayed at the bottom of the viewer. + +### More Options Menu: + +When you open the "more options" menu, you will see additional actions such as: + +**DownloadOption:** Tap to download the currently opened PDF document. + +**BookmarkOption:** Allows you to view bookmarks within the document. + +![More options menu showing additional actions like download and bookmark](./images/more-options.png) + +## Enabling Desktop Mode in Mobile + +The desktop version of the toolbar can be enabled on mobile devices by using the `enableDesktopMode` API. This API allows you to bring desktop-like features to the mobile PDF viewer, providing access to additional toolbar actions that are typically available on desktop platforms. + +### Steps to Enable Desktop Mode: + +**Step 1:** Set `enableDesktopMode` to true in the API configuration. + +**Step 2:** This will replace the mobile toolbar with the desktop toolbar layout, allowing access to more actions and controls. + +{% tabs %} +{% highlight html tabtitle="Standalone" %} + +
+ @Html.EJS().PdfViewer("pdfviewer").EnableDesktopMode(true).DocumentPath("https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf").Render() +
+ +{% endhighlight %} +{% highlight html tabtitle="Server-Backed" %} + +
+ @Html.EJS().PdfViewer("pdfviewer").ServiceUrl(VirtualPathUtility.ToAbsolute("~/PdfViewer/")).EnableDesktopMode(true).DocumentPath("https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf").Render() +
+ +{% endhighlight %} +{% endtabs %} + +## Enable Scrolling in Desktop Mode with Touch Gestures + +To ensure smooth scrolling of PDF documents on a mobile device in desktop mode, it is important to enable touch gesture scrolling. You can achieve this by setting the `enableTextSelection` option to **false**. + +{% tabs %} +{% highlight html tabtitle="Standalone" %} + +
+ @Html.EJS().PdfViewer("pdfviewer").EnableDesktopMode(true).EnableTextSelection(false).DocumentPath("https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf").Render() +
+ +{% endhighlight %} +{% highlight html tabtitle="Server-Backed" %} + +
+ @Html.EJS().PdfViewer("pdfviewer").ServiceUrl(VirtualPathUtility.ToAbsolute("~/PdfViewer/")).EnableDesktopMode(true).EnableTextSelection(false).DocumentPath("https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf").Render() +
+ +{% endhighlight %} +{% endtabs %} + +## Print Option Not Available + +The Print option is not available in mobile mode by default. However, if you need to use the print functionality on mobile devices, we recommend enabling the desktop toolbar on mobile using the `enableDesktopMode` API. + +### How to Use Print on Mobile: + +**Enable Desktop Mode:** Set `enableDesktopMode` to true to load the desktop version of the toolbar on your mobile device. + +**Print Option:** Once desktop mode is enabled, the print option will be available, allowing you to print the document directly from your mobile device. + +N> In mobile mode, the print functionality will not be available unless desktop mode is enabled. \ No newline at end of file diff --git a/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.MVC/open-pdf-file.md b/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.MVC/open-pdf-file.md new file mode 100644 index 0000000000..a72c42b3d9 --- /dev/null +++ b/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.MVC/open-pdf-file.md @@ -0,0 +1,52 @@ +--- +layout: post +title: Open PDF files in EJ2 ASP.NET MVC PDF Viewer | Syncfusion +description: Learn here all about Opening PDF in ASP.NET MVC PDF Viewer component of Syncfusion Essential JS 2 and more. +platform: ej2-asp-core-mvc +control: How to Open PDF From Base64 +publishingplatform: ##Platform_Name## +documentation: ug +--- + +# Opening a PDF from Base64 data in PDF Viewer +### Overview + +This guide demonstrates how to load a PDF document from a Base64 string into the Syncfusion PDF Viewer using ASP.NET MVC. This feature is useful for loading PDF data received from a client, database, or other sources where the document is encoded in Base64. + +### Opening PDF from Base64 data + +**Step 1:** Set Up the PdfViewer in Your ASP.NET MVC Project + + 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 load PDF document using base64 string. + + +{% tabs %} +{% highlight html tabtitle="Standalone" %} + +@using Syncfusion.EJ2 +@{ + ViewBag.Title = "Home Page"; +} +
+
+ + + @Html.EJS().PdfViewer("pdfViewer").DocumentPath("https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf").ResourceUrl("https://cdn.syncfusion.com/ej2/28.1.33/dist/ej2-pdfviewer-lib").Render() +
+
+ + + +{% endhighlight %} +{% endtabs %} + +[View sample in GitHub](https://github.com/SyncfusionExamples/mvc-pdf-viewer-examples/tree/master/How%20to) diff --git a/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.NETCORE/mobile-toolbar.md b/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.NETCORE/mobile-toolbar.md new file mode 100644 index 0000000000..3b6c98d5ef --- /dev/null +++ b/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.NETCORE/mobile-toolbar.md @@ -0,0 +1,120 @@ +--- +layout: post +title: Mobile Toolbar Interface in ##Platform_Name## Pdfviewer Component| Syncfusion +description: Learn All About the Mobile Toolbar Interface in Syncfusion ##Platform_Name## Pdfviewer component of Syncfusion Essential JS 2 and more. +platform: ej2-asp-core-mvc +control: Mobile Toolbar Interface +documentation: ug +domainurl: ##DomainURL## +--- +# Mobile Toolbar Interface in ASP.NET Core PDF Viewer control + +The Mobile PDF Viewer offers a variety of features for viewing, searching, annotating, and managing PDF documents on mobile devices. It includes essential tools like search, download, bookmarking, annotation, and page organization. Users also have the option to enable desktop toolbar features in mobile mode, providing a more extensive set of actions. + +## Mobile Mode Toolbar Configuration +In mobile mode, the toolbar is optimized for ease of use on small screens, presenting users with the most common actions for interacting with a PDF document. Below are the key features available in mobile mode: + +![Mobile toolbar with primary PDF interaction options](./images/mobileToolbar.png) + +### Main Toolbar Options: + +**OpenOption:** Tap to load a PDF document. + +**SearchOption:** Access the search bar to find text within the document. + +![Search bar displayed for finding text within a PDF](./images/searchOption.png) + +**UndoRedoTool:** Quickly undo or redo any annotations made. + +**OrganizePagesTool:** Enable or disable page organization features to modify document pages. + +![Page organization interface for modifying PDF pages](./images/organizePages.png) + +**AnnotationEditTool:** Activate or deactivate annotation editing to add or modify annotations. + +![Annotation editing toolbar allowing users to add, edit, or delete annotations on a PDF](./images/editAnnotation.png) + + +N> In mobile mode, the annotation toolbar is conveniently displayed at the bottom of the viewer. + +### More Options Menu: + +When you open the "more options" menu, you will see additional actions such as: + +**DownloadOption:** Tap to download the currently opened PDF document. + +**BookmarkOption:** Allows you to view bookmarks within the document. + +![More options menu showing additional actions like download and bookmark](./images/more-options.png) + +## Enabling Desktop Mode in Mobile + +The desktop version of the toolbar can be enabled on mobile devices by using the `enableDesktopMode` API. This API allows you to bring desktop-like features to the mobile PDF viewer, providing access to additional toolbar actions that are typically available on desktop platforms. + +### Steps to Enable Desktop Mode: + +**Step 1:** Set `enableDesktopMode` to true in the API configuration. + +**Step 2:** This will replace the mobile toolbar with the desktop toolbar layout, allowing access to more actions and controls. + +{% tabs %} +{% highlight cshtml tabtitle="Standalone" %} +
+ + +
+{% endhighlight %} +{% highlight cshtml tabtitle="Server-Backed" %} +
+ + +
+{% endhighlight %} +{% endtabs %} + +## Enable Scrolling in Desktop Mode with Touch Gestures + +To ensure smooth scrolling of PDF documents on a mobile device in desktop mode, it is important to enable touch gesture scrolling. You can achieve this by setting the `enableTextSelection` option to **false**. + +{% tabs %} +{% highlight cshtml tabtitle="Standalone" %} +
+ + +
+{% endhighlight %} +{% highlight cshtml tabtitle="Server-Backed" %} +
+ + +
+{% endhighlight %} +{% endtabs %} + +## Print Option Not Available + +The Print option is not available in mobile mode by default. However, if you need to use the print functionality on mobile devices, we recommend enabling the desktop toolbar on mobile using the `enableDesktopMode` API. + +### How to Use Print on Mobile: + +**Enable Desktop Mode:** Set `enableDesktopMode` to true to load the desktop version of the toolbar on your mobile device. + +**Print Option:** Once desktop mode is enabled, the print option will be available, allowing you to print the document directly from your mobile device. + +N> In mobile mode, the print functionality will not be available unless desktop mode is enabled. \ No newline at end of file diff --git a/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.NETCORE/open-pdf-file.md b/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.NETCORE/open-pdf-file.md new file mode 100644 index 0000000000..0608316130 --- /dev/null +++ b/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.NETCORE/open-pdf-file.md @@ -0,0 +1,53 @@ +--- +layout: post +title: Open PDF files in EJ2 ASP.NET CORE PDF Viewer | Syncfusion +description: Learn here all about Opening PDF in ASP.NET CORE PDF Viewer component of Syncfusion Essential JS 2 and more. +platform: ej2-asp-core-mvc +control: PDF Viewer +publishingplatform: ##Platform_Name## +documentation: ug +--- + +# Opening a PDF from Base64 data in PDF Viewer +### Overview + +This guide demonstrates how to load a PDF document from a Base64 string into the Syncfusion PDF Viewer using ASP.NET CORE. This feature is useful for loading PDF data received from a client, database, or other sources where the document is encoded in Base64. + +### Opening PDF from Base64 data + +**Step 1:** Set Up the PdfViewer in Your ASP.NET CORE Project + +Follow the steps provided in the [link](https://ej2.syncfusion.com/aspnetcore/documentation/pdfviewer/getting-started) to create a simple PDF Viewer sample. + +**Step 2:** Use the following code snippet to load PDF document using base64 string. + + +{% tabs %} +{% highlight html tabtitle="Standalone" %} + +@page "{handler?}" +@model IndexModel +@{ + ViewData["Title"] = "Home page"; +} + +
+ + + +
+ + + +{% endhighlight %} +{% endtabs %} + +[View sample in GitHub](https://github.com/SyncfusionExamples/asp-core-pdf-viewer-examples/tree/master/How%20to) diff --git a/ej2-asp-core-mvc/pdfviewer/images/editAnnotation.png b/ej2-asp-core-mvc/pdfviewer/images/editAnnotation.png new file mode 100644 index 0000000000..9086dcb152 Binary files /dev/null and b/ej2-asp-core-mvc/pdfviewer/images/editAnnotation.png differ diff --git a/ej2-asp-core-mvc/pdfviewer/images/mobileToolbar.png b/ej2-asp-core-mvc/pdfviewer/images/mobileToolbar.png new file mode 100644 index 0000000000..fb6cdfe793 Binary files /dev/null and b/ej2-asp-core-mvc/pdfviewer/images/mobileToolbar.png differ diff --git a/ej2-asp-core-mvc/pdfviewer/images/more-options.png b/ej2-asp-core-mvc/pdfviewer/images/more-options.png new file mode 100644 index 0000000000..e722639bff Binary files /dev/null and b/ej2-asp-core-mvc/pdfviewer/images/more-options.png differ diff --git a/ej2-asp-core-mvc/pdfviewer/images/organizePages.png b/ej2-asp-core-mvc/pdfviewer/images/organizePages.png new file mode 100644 index 0000000000..ea648f5187 Binary files /dev/null and b/ej2-asp-core-mvc/pdfviewer/images/organizePages.png differ diff --git a/ej2-asp-core-mvc/pdfviewer/images/searchOption.png b/ej2-asp-core-mvc/pdfviewer/images/searchOption.png new file mode 100644 index 0000000000..f896cfb838 Binary files /dev/null and b/ej2-asp-core-mvc/pdfviewer/images/searchOption.png differ