/// <summary> /// Sends a javascript script with the specified Iframe selector to display the pdf document /// </summary> /// <param name="IFrameQuerySelector"></param> /// <returns></returns> public static IActionResult EmbedInBrowserIframe(this IPdfMake pdfMake, string IFrameQuerySelector) { return(new ContentResult() { Content = pdfMake.GetEmbedInBrowserIframe(IFrameQuerySelector), ContentType = "application/javascript", StatusCode = 200 }); }