pdfui.addViewerEventListener(Events.openFileSuccess,
function
() {
pdfui.getPDFViewer().then((viewer) => {
var
viewMode = viewer.getViewModeManager();
var
curViewModeName = viewMode.currentViewMode.getName();
console.log(curViewModeName);
if
(curViewModeName !=
"facing-page-view-mode"
) {
viewMode.switchTo(
'facing-page-view-mode'
);
// viewMode.switchTo('multipage-view-mode');
// viewMode.switchTo('continuous-view-mode');
}
})
});