Rotativa.Demo.Controllers.HomeController.TestExternalUrl C# (CSharp) 메소드

TestExternalUrl() 공개 메소드

public TestExternalUrl ( ) : ActionResult
리턴 ActionResult
        public ActionResult TestExternalUrl()
        {
            // In some cases you might want to pull completely different URL that is not related to your application.
            // You can do that by specifying full URL.

            return new UrlAsPdf("http://www.github.com")
                       {
                           FileName = "TestExternalUrl.pdf",
                           PageMargins = new Margins(0, 0, 0, 0)
                       };
        }