Tag: mvcrazortopdf

MvcRazorToPdf – 图像无法渲染,MVC4

我一直试图渲染图像,但没有积极的结果。 是否需要添加任何具体内容才能使其正常工作。 我不包括渲染的其余部分,但在pdf中,图像丢失了。 我按照以下链接: https://github.com/andyhutch77/MvcRazorToPdf 视图 @model Test.Models.PdfExample @{ ViewBag.Title = “Index”; Layout = “~/Views/Shared/_Layout.cshtml”; var imagePath = Server.MapPath(“~/Content/Images”); } // not rendering @**@ 我可以看到 占据width and height但它没有显示其内部的图像。