Last post Apr 24, 2014 04:47 AM by leo_456
Mar 15, 2014 01:17 PM|sayd|LINK
i am trying to do something where i will uppload some doc files and also some pdf files.and at the time i upload it it will be saved autometiclly with WATERMARK given. i am trying hard to do these but cant find any solution.i see many paid
dlls but i need something absolutely free. i need some code what will actually add some watermark in the pdf and wordfile.if microsoft has anything for dotnet users please suggest me some code or something. if its possible for you guys it will be okay if i
get a code what will do the work in a directory.Moreover i need some code badly what will take a pdf or word and add a watermark on it. thank you :)
Mar 15, 2014 04:13 PM|smirnov|LINK
Mar 15, 2014 04:27 PM|A2H|LINK
You can check the below link to add watermark in PDF
To add watermark in Word you can check the below links
Apr 24, 2014 04:47 AM|leo_456|LINK
Has your problem been soved?If not ,I 'd like to share my solution on this issue.I use Spire.PDF dll to that.And the code varies on what type of watermark you want to add, text or image.
adding image water for example,you can realize that using following codes after installing that component.
= new PdfTilingBrush(new SizeF(page.Canvas.ClientSize.Width / 2, page.Canvas.ClientSize.Height / 3));
brush.Graphics.TranslateTransform(brush.Size.Width / 2, brush.Size.Height / 2);
new PdfFont(PdfFontFamily.Helvetica, 24), PdfBrushes.Violet, 0, 0,
page.Canvas.DrawRectangle(brush, new RectangleF(new PointF(0, 0), page.Canvas.ClientSize));
you can get free version from: https://pdfapi.codeplex.com hope it works for u as well.