BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
Hi Callam,Thank you for contacting Syncfusion support.At present, we do not have support for passing parameters to WebAPI method in PDF viewer control. Can you please provide us the details like what kind of parameters you are going to pass to the WebAPI controller of PDF viewer control and their usage in your project. So, that it will be helpful for us to analyze further on your requirement and assist you better.Regards,Aravinth
Hi
Do we now have support for passing parameters to WebAPI method in PDF viewer control?
Thanks
@Html.EJS().PdfViewer("pdfviewer").ServiceUrl(VirtualPathUtility.ToAbsolute("~/PdfViewer/")).DocumentPath("F# Succinctly.pdf").AjaxRequestInitiate("ajaxRequestInitiate").Render()
function ajaxRequestInitiate(args) {
var viewer = document.getElementById("pdfviewer").ej2_instances[0];
if (args.JsonData.action == "Load") {
args.JsonData['documentId'] = '1001';
args.JsonData["moduleId"] = "1001";
viewer.setJsonData(args.JsonData);
}
}
|
Thanks, it worked