diff --git a/Troubleshooting/Content Security Policy/index.html b/Troubleshooting/Content Security Policy/index.html index 68b31af..0aefda3 100644 --- a/Troubleshooting/Content Security Policy/index.html +++ b/Troubleshooting/Content Security Policy/index.html @@ -4,35 +4,29 @@ Essential JS 2 - - - + + - + - - + + + - - -
-
-
- - \ No newline at end of file + + +
+
+
+ + + + + diff --git a/Troubleshooting/Content Security Policy/index.js b/Troubleshooting/Content Security Policy/index.js new file mode 100644 index 0000000..82b3408 --- /dev/null +++ b/Troubleshooting/Content Security Policy/index.js @@ -0,0 +1,13 @@ +// Initialize PDF Viewer component +var pdfviewer = new ej.pdfviewer.PdfViewer({ + documentPath: "https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf", + resourceUrl: "https://cdn.syncfusion.com/ej2/29.2.8/dist/ej2-pdfviewer-lib" +}); +// To utilize the server-backed PDF Viewer, need to specify the service URL. +// This can be done by including the serviceUrl: 'https://services.syncfusion.com/js/production/api/pdfviewer' + +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); + +// PDF Viewer control rendering starts +pdfviewer.appendTo('#PdfViewer');