#1649
Donna Klinton
Participant

HI there
Here is the code for adding watermark to PDF files:
RasterEdgeImaging text = new RasterEdgeImaging();

using (Image image= Image.LoadImageFromFile(@”C:\1.pdf”));
{
Text text = new Text(text);
RasterEdgeImaging.Font font = new RasterEdgeImaging.Font(“Times New Roman”, 16, FontStyle.Bold);

RasterEdgeImaging.Brushes.SolidBrush brush=new RasterEdgeImaging.Brushes.SolidBrush();
brush.Color=Color.Black;
brush.Opacity=100;
text.Data = “copyright”;
text.CreateWatermark(“watermark”, font, brush, new PointF(image.Width/2, image.Height/2));
text.Save(@”C:\1-watermark.pdf”);
}
Hope to help you.