How can I apply PDF Viewer in my webpage to view PDF without Downloading it

Hello!
I want to know the basic idea with code that, How can I apply PDF Viewer in my webpage to view PDF without Downloading it

1 Reply

AA Akshaya Arivoli Syncfusion Team May 27, 2020 12:49 PM UTC

Hi Ishan , 

Thank you for contacting Syncfusion support. 

We can hide the toolbar items using the toolbarSettings available in PDF Viewer.  




Please find the code snippet for the same, 

Code Snippet: 
<div class="control-section"> 
    @Html.EJS().PdfViewer("pdfviewer").ServiceUrl(VirtualPathUtility.ToAbsolute("~/PdfViewer")).DocumentPath("PDF Succinctly.pdf").ToolbarSettings(new Syncfusion.EJ2.PdfViewer.PdfViewerToolbarSettings {ToolbarItems = "OpenOption,PageNavigationTool,MagnificationTool,PanTool,SelectionTool,SearchOption,PrintOption,UndoRedoTool,AnnotationEditTool,CommentTool" } ).Render() 
</div> 
 
Please refer to the below UG link for more details, 



Please try it and revert us with more details if you need any further assistance. 
  

Regards, 
Akshaya 


Loader.
Up arrow icon