Go4Expert

Go4Expert (http://www.go4expert.com/)
-   ASP (http://www.go4expert.com/articles/asp-tutorials/)
-   -   Add WaterMark In PDF Files (http://www.go4expert.com/articles/add-watermark-pdf-files-t18258/)

naimish 1Jul2009 11:09

Re: Add WaterMark In PDF Files
 
Posting Done, Waiting for approval, please have a look once it got approved :)

shabbir 1Jul2009 12:26

Re: Add WaterMark In PDF Files
 
Quote:

Originally Posted by naimish (Post 50922)
Posting Done, Waiting for approval, please have a look once it got approved :)

Its already approved quite sometime back

naimish 1Jul2009 12:28

Re: Add WaterMark In PDF Files
 
Yeah, Seen It, Thank you very much for approving it :)

shabbir 2Jul2009 11:20

Re: Add WaterMark In PDF Files
 
Nomination for article of the month - Jun 2009 Started. Nominate this article for Article of the month - Jun 2009

naimish 2Jul2009 11:24

Re: Add WaterMark In PDF Files
 
Ohh, Thanks Shabbir :)

naimish 20Aug2009 15:11

Re: Add WaterMark In PDF Files
 
Please check out my new article on Add Text WaterMark In PDF Files :D

abhi.aradhye 23Nov2009 17:53

Re: Add WaterMark In PDF Files
 
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();

technica 3Dec2009 12:35

Re: Add WaterMark In PDF Files
 
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.

almedajohnson 17Sep2010 15:24

Re: Add WaterMark In PDF Files
 
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.

szoasis 23Nov2010 08:31

Re: Add WaterMark In PDF Files
 
I have decided to use naimish instead of arithforu, you can delete arithforu if you want.


All times are GMT +5.5. The time now is 18:39.