diff --git a/How to/Remove bookmark option/index.html b/How to/Remove bookmark option/index.html new file mode 100644 index 0000000..45f3859 --- /dev/null +++ b/How to/Remove bookmark option/index.html @@ -0,0 +1,44 @@ +<!DOCTYPE html><html lang="en"><head> + <title>EJ2 PDF Viewer</title> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <meta name="description" content="Typescript PDF Viewer Control"> + <meta name="author" content="Syncfusion"> + <link href="https://cdn.syncfusion.com/ej2/27.2.5/ej2-base/styles/material.css" rel="stylesheet"> + <link href="https://cdn.syncfusion.com/ej2/27.2.5/ej2-pdfviewer/styles/material.css" rel="stylesheet"> + <link href="https://cdn.syncfusion.com/ej2/27.2.5/ej2-buttons/styles/material.css" rel="stylesheet"> + <link href="https://cdn.syncfusion.com/ej2/27.2.5/ej2-popups/styles/material.css" rel="stylesheet"> + <link href="https://cdn.syncfusion.com/ej2/27.2.5/ej2-navigations/styles/material.css" rel="stylesheet"> + <link href="https://cdn.syncfusion.com/ej2/27.2.5/ej2-dropdowns/styles/material.css" rel="stylesheet"> + <link href="https://cdn.syncfusion.com/ej2/27.2.5/ej2-lists/styles/material.css" rel="stylesheet"> + <link href="https://cdn.syncfusion.com/ej2/27.2.5/ej2-inputs/styles/material.css" rel="stylesheet"> + <link href="https://cdn.syncfusion.com/ej2/27.2.5/ej2-splitbuttons/styles/material.css" rel="stylesheet"> + <link href="https://cdn.syncfusion.com/ej2/27.2.5/ej2-notifications/styles/material.css" rel="stylesheet"> + + <!-- Hide PDF viewer Bookmark option --> + <style> + #pdfViewer_bookmark{ + display: none !important; + } + </style> + + <!-- Essential JS 2 PDF Viewer's script --> + <script src="https://cdn.syncfusion.com/ej2/29.1.33/dist/ej2.min.js" type="text/javascript"></script> + <script src="https://cdn.syncfusion.com/ej2/syncfusion-helper.js" type ="text/javascript"></script> + +<script src="https://cdn.syncfusion.com/ej2/syncfusion-helper.js" type ="text/javascript"></script> +</head> +<body> + <div id="container"> + <div id="pdfViewer" style="height:500px;width:100%;"></div> + </div> + + +<script> +var ele = document.getElementById('container'); +if(ele) { + ele.style.visibility = "visible"; +} +</script> +<script src="index.js" type="text/javascript"></script> +</body></html> \ No newline at end of file diff --git a/How to/Remove bookmark option/index.js b/How to/Remove bookmark option/index.js new file mode 100644 index 0000000..0b3b3eb --- /dev/null +++ b/How to/Remove bookmark option/index.js @@ -0,0 +1,7 @@ +var pdfviewer = new ej.pdfviewer.PdfViewer({ + documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf', + resourceUrl: "https://cdn.syncfusion.com/ej2/29.1.33/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.appendTo('#pdfViewer'); \ No newline at end of file