How To Add Image In Pdf Using Itextsharp Css

See More On Stackoverflow

Der Patrizier 2 Gold Patch. Closed as off-topic by,,,, Jul 24 '15 at 4:21 This question appears to be off-topic. The users who voted to close gave this specific reason: • 'Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, and what has been done so far to solve it.' – durron597, Mogsdad, mario, Alexander, OzrenTkalcecKrznaric If this question can be reworded to fit the rules in the, please.

When creating a PDF in iTextSharp, how do you set an image as the background of every page? I have tried several methods, and every one only puts the image on one page, or doesn't work at all. I am not manually creating new pages in the PDF, but rather adding text that overflows to the next page. Dim document As Document = New Document() Dim writer = PdfWriter.GetInstance(document, m) Dim imagepath As String = context.Server.MapPath('img.png') Dim image As iTextSharp.text.Image = iTextSharp.text.Image.GetInstance(imagepath) writer.PageEvent = New pdfPageEvents(image)... Public Class pdfPageEvents Inherits iTextSharp.text.pdf.PdfPageEventHelper Dim image As iTextSharp.text.Image Public Sub New(ByVal backgroundImage As iTextSharp.text.Image) image = backgroundImage End Sub Public Overrides Sub OnStartPage(ByVal writer As PdfWriter, ByVal doc As Document) writer.Add(image) End Sub End Class.

How To Add Image In Pdf Using Itextsharp Css