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.
How to Get Support
After you register and login to the site, you may post all plugin support questions in the Support Forum.
If you need to provide private info, please create a ticket and then reply to it using Set as private reply option.
Sign Up
Please login or sign up for a free account.Sign Up Now