Banned
1Jul2009,11:09   #11
naimish's Avatar
Posting Done, Waiting for approval, please have a look once it got approved
Go4Expert Founder
1Jul2009,12:26   #12
shabbir's Avatar
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
Banned
1Jul2009,12:28   #13
naimish's Avatar
Yeah, Seen It, Thank you very much for approving it
Go4Expert Founder
2Jul2009,11:20   #14
shabbir's Avatar
Nomination for article of the month - Jun 2009 Started. Nominate this article for Article of the month - Jun 2009
Banned
2Jul2009,11:24   #15
naimish's Avatar
Ohh, Thanks Shabbir
Banned
20Aug2009,15:11   #16
naimish's Avatar
Please check out my new article on Add Text WaterMark In PDF Files
Newbie Member
23Nov2009,17:53   #17
abhi.aradhye's Avatar
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();
CoderByNature
3Dec2009,12:35   #18
technica's Avatar
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.
Newbie Member
17Sep2010,15:24   #19
almedajohnson's Avatar
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.
Light Poster
23Nov2010,08:31   #20
szoasis's Avatar
I have decided to use naimish instead of arithforu, you can delete arithforu if you want.