Watermark not being removed [5:4:s3]

Watermark not being removed [5:4:s3]

Forum member · Feb 21, 2007
Hello, (Using DynamicPDF Merger 4.0 for .NET Standard Server License) I have a problem with the watermark not being removed. It seems the license-key is being found correctly, since it puts in the watermark that indicates a non-licensed function being used. Here is the code I use: string filename = Request.QueryString["f"].ToString(); Response.Clear(); MergeDocument document = new MergeDocument(filename); //.NET GDI+ BEGIN--------------------- Bitmap imageData = this.GetUserDefinedImage(); RotateFlipType rotation = RotateFlipType.Rotate270FlipNone; imageData.RotateFlip(rotation); //.NET GDI+ END----------------------- ceTe.DynamicPDF.PageElements.Image insertImage = new ceTe.DynamicPDF.PageElements.Image(imageData, 20, 0); document.Pages[0].Elements.Add(insertImage); document.DrawToWeb();

Re: Watermark not being removed [5:4:s3]

Forum member · Feb 21, 2007
Okay, The issue has been resolved. The cause was my imagedata was in Bitmap format. So all I needed to do was to place it in a MemoryStream and save the imagedata to the MemoryStream in PixelFormat.Gif Code: string filename = Request.QueryString["f"].ToString(); Response.Clear(); MergeDocument document = new MergeDocument(filename); //.NET GDI+ Code BEGIN----------------------- Bitmap imageData = this.GetUserDefinedImage(); RotateFlipType rotation = RotateFlipType.Rotate270FlipNone; imageData.RotateFlip(rotation); System.IO.MemoryStream imageStream = new System.IO.MemoryStream(); imageData.Save(imageStream, ImageFormat.Gif); //.NET GDI+ Code END------------------------- ceTe.DynamicPDF.Imaging.GifImageData gifImageData = new ceTe.DynamicPDF.Imaging.GifImageData(imageStream); ceTe.DynamicPDF.PageElements.Image insertImage = new ceTe.DynamicPDF.PageElements.Image(gifImageData, 20, 0); document.Pages[0].Elements.Add(insertImage); document.DrawToWeb(); ----------- This is just the work-around. You can probably do it more pretty once you spend a few more minutes :) Have fun

Re: Watermark not being removed [5:4:s3]

Support · Feb 21, 2007
The reason you are still recieving the watermark is becasue you are using the Image object. Images, excpet for GIFs, are not included with the Standard edition but are rather part of the Professional edition. A full list of all our features in each edition can be found on our Feature Chart, http://www.DynamicPDF.com/Products/DynamicPDFForNET/Merger/FeatureChart.csp . Thanks, ceTe Software Support Team

Re: Watermark not being removed [5:4:s3]

Support · Feb 21, 2007
Looks like you got it!

Re: Watermark not being removed [5:4:s3]

Forum member · Feb 21, 2007
It helps to read the documentation -- but that's a waste of time (I thought)