PDF Viewer Settings - Show comments on open and hide annotation button menu

Hi,

  I would like to have the comments panel showing when the PDF is loaded and hide annotation button menu that has the import/export options for notations.  I have attached a screen shot.


I am creating the PDF Viewer thusly and hope there is a way to configure these settings in the javascript.

 

<div class="row">

    <div class="col-md-12">        @Html.EJS().PdfViewer("pdfviewer").ServiceUrl(VirtualPathUtility.ToAbsolute("~/PdfViewer/")).ToolbarSettings(new Syncfusion.EJ2.PdfViewer.PdfViewerToolbarSettings { ShowTooltip = true, AnnotationToolbarItems = "CommentPanelTool" }).DocumentPath(ViewBag.AppointmentIdDir + "\\" + ViewBag.FileName).Render()

    </div>

</div>





Attachment: pdfviewerlayout_f69f537f.zip

1 Reply

VV Visvesvar Venkatesan Syncfusion Team August 29, 2022 03:59 PM UTC

Hi Nancy ,


Kindly find the code snippet to load comment panel on document loading.


Code snippet:


<div style="height:500px;width:100%;">

    @Html.EJS().PdfViewer("pdfviewer").ServiceUrl(VirtualPathUtility.ToAbsolute("~/PdfViewer/")).DocumentPath("PDF Succinctly.pdf").IsCommandPanelOpen(true).Render()

</div>


There is no support to hide the import and export annotations option from the comment panel and we have logged it as a feature. It will be included in any of our upcoming volume releases and cannot provide an exact timeline. You can track the status of the feature from the following feedback.


Feedback - Option to show or hide the import and export menu options from the comment panel | Feature Feedback


Regards,

Visvesvar K V  


Loader.
Up arrow icon