ItextSharp - RazorPdf put image to Pdf
How can I put the image in the itextSharp generated pdf?
I have a simple method on a controller ...
public ActionResult Pdf()
{
var pdfResult = new PdfResult(null,"Pdf");
pdfResult.ViewBag.Title = "Title";
return pdfResult;
}
And a simple look ...
@{
Layout = null;
}
<itext creationdate="@DateTime.Now.ToString()" producer="RazorPDF">
Html Text for test.
<img src="~/Images/sampleImage.png" />
</itext>
Any help would be appreciated!
0
source to share