Click here to Skip to main content
15,886,026 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
C#
i am trying to convert aspx page to pdf with water mark image but did not get water mark for all pages i get only one page any one can resolve it? 


pdfDoc.Open();
htmlparser.Parse(sr);
iTextSharp.text.Image tsipasswm = iTextSharp.text.Image.GetInstance(Server.MapPath(filepath));
tsipasswm.Alignment = iTextSharp.text.Image.ALIGN_MIDDLE;
tsipasswm.ScaleToFit(200, 200);
tsipasswm.Alignment = iTextSharp.text.Image.UNDERLYING;
tsipasswm.SetAbsolutePosition(250, 300);
pdfDoc.Add(tsipasswm);
htmlparser.Parse(sr);
pdfDoc.Close();
Posted
Comments
[no name] 26-Dec-15 7:28am    
Maybe this helps, not sure, only a Google from my side:c# itextsharp PDF creation with watermark on each page - Stack Overflow[^]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900