0
naimish's Avatar
Banned
Posting Done, Waiting for approval, please have a look once it got approved
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Quote:
Originally Posted by naimish View Post
Posting Done, Waiting for approval, please have a look once it got approved
Its already approved quite sometime back
0
naimish's Avatar
Banned
Yeah, Seen It, Thank you very much for approving it
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Nomination for article of the month - Jun 2009 Started. Nominate this article for Article of the month - Jun 2009
0
naimish's Avatar
Banned
Ohh, Thanks Shabbir
0
naimish's Avatar
Banned
Please check out my new article on Add Text WaterMark In PDF Files
0
abhi.aradhye's Avatar, Join Date: Nov 2009
Newbie Member
i have ude this code in my page .
page run but watermark is not added in pdf.
please help m.
my code

PdfReader pdfReader = new PdfReader(Server.MapPath("321.pdf"));
PdfStamper stamp = new PdfStamper(pdfReader, new System.IO.FileStream(Server.MapPath("watermark.pdf "), System.IO.FileMode.Create));

iTextSharp.text.Image img = iTextSharp.text.Image.GetInstance(Server.MapPath(" AIPL-watermark.jpg"));
img.SetAbsolutePosition(100, 100);

for (int j = 1; j < pdfReader.NumberOfPages; j++)
{
PdfContentByte waterMark = stamp.GetUnderContent(1);
waterMark.AddImage(img);
}
stamp.FormFlattening = true;
stamp.Close();
pdfReader.Close();
0
technica's Avatar, Join Date: Dec 2007
CoderByNature
hey mate great code, I wanted to use it in one of project that creates reports of user tracking data with company name as the watermark on the report.
0
almedajohnson's Avatar, Join Date: Sep 2010
Newbie Member
It was completely new for me and I loved learning this new technique. I am goint to try this for sure. Thanks for sharing such nice resource.
0
szoasis's Avatar, Join Date: Nov 2010
Light Poster
I have decided to use naimish instead of arithforu, you can delete arithforu if you want.