Query | Details |
Do I have to load a default pdf document on the initial load? Because, in our page, the initial view is blank and when user click on a node (which is on the left navigation bar), it loads the pdf doc inside the viewer. | We need to provide the default PDF document to the PDF viewer control in the version 14.4 during control initialization. But we have provided the support to initialize the PDF viewer control without providing the default PDF document in our latest version (i.e.15.2.0.40) of Essential Studio, the PDF viewer control renders blank when we have not provided default PDF document in the MVC controller. We have modified the previously provided sample to version 15.2.0.40 and the PDF viewer will render blank initially(the default PDF document is not provided) in the sample. You can download the sample from the following link. |
Also do I have to define the PostViewerAction in the controller class? A load call is triggered in the JS when this $("#pdfviewer").ejPdfViewer({ serviceUrl: "/PDFDemo" }); is initialized. But a call to this nethod pdfviewer.load(data) aborts the previous load request which in turn triggers postViewerAction method to be called (in the error handling function). | We have modified the Web API controller API’s from the product version 15.1.0.33 of Essential Studio and removed the AJAX call from the error handling function of the previous AJAX request in the PDF viewer control from the same version. Please upgrade to our latest version (i.e. 15.2.0.40) of Essential Studio to resolve this issue. You can download the latest Essential Studio setup from the following link. |