From 652da718a714e705a56f21e143a8286ea522e710 Mon Sep 17 00:00:00 2001 From: SF4524LogeshKumar Date: Fri, 13 Dec 2024 12:21:22 +0530 Subject: [PATCH] 927839: Sample on How to Enable Local Storage --- How to/Enable Local Storage/index.html | 37 ++++++++++++++++++++++++++ How to/Enable Local Storage/index.js | 8 ++++++ 2 files changed, 45 insertions(+) create mode 100644 How to/Enable Local Storage/index.html create mode 100644 How to/Enable Local Storage/index.js diff --git a/How to/Enable Local Storage/index.html b/How to/Enable Local Storage/index.html new file mode 100644 index 0000000..61fea71 --- /dev/null +++ b/How to/Enable Local Storage/index.html @@ -0,0 +1,37 @@ + + EJ2 PDF Viewer + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + \ No newline at end of file diff --git a/How to/Enable Local Storage/index.js b/How to/Enable Local Storage/index.js new file mode 100644 index 0000000..ffa1b92 --- /dev/null +++ b/How to/Enable Local Storage/index.js @@ -0,0 +1,8 @@ +var pdfviewer = new ej.pdfviewer.PdfViewer({ + documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf', + resourceUrl: "https://cdn.syncfusion.com/ej2/27.2.5/dist/ej2-pdfviewer-lib", +}); +ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch, ej.pdfviewer.Print, ej.pdfviewer.Navigation, ej.pdfviewer.Toolbar, + ej.pdfviewer.Magnification, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer); + pdfviewer.enableLocalStorage=true; + pdfviewer.appendTo('#PdfViewer'); \ No newline at end of file