I am exploring the source codes of VintaSoft ASP.NET Annotation Demo in installation of VintaSoft Imaging NET SDK - function __initMenu in file "[SdkInstallPath]\VintaSoft\Imaging .NET v11.0\Examples\ASP.NET MVC\CSharp\AspNetMvcAnnotationDemo\Scripts\AnnotationDemo.js".
Code: Select all
// register new UI elements
__registerNewUiElements();
// create the document viewer settings
var docViewerSettings = new Vintasoft.Imaging.DocumentViewer.WebDocumentViewerSettingsJS("documentViewerContainer", { annotations: true });
// initialize main menu of document viewer
__initMenu(docViewerSettings);
// initialize side panel of document viewer
__initSidePanel(docViewerSettings);
// initialize image viewer panel of document viewer
__initImageViewerPanel(docViewerSettings);
// create the document viewer
_docViewer = new Vintasoft.Imaging.DocumentViewer.WebDocumentViewerJS(docViewerSettings);
Code: Select all
<div id="documentViewerContainer"></div>