Hi,
have purchased a DynamicPDF Viewer v1.0 Enterprise Developer License, but can't find out how to add a watermark to a pdf (on the print of the pdf at least.)
Mike
Adding Watermark
Re: Adding Watermark
Support · May 6, 2009Hello Mike,
Yes, you can add the watermark to the PDF document when viewing using the Viewer product. You will have to use the AddWaterMark method of the viewer control. Below is a sample code.
axDynamicPDFViewer1.OpenFile(@"C:\Temp\Test.pdf", "");
axDynamicPDFViewer1.AddWaterMark(0, "Hello", 100, 100, 12, 16777216, 0, 50, 45);
Following is the explanation of the parameters:
FontColor: A ULong value. It is calculated as R*2^0 x G*2^8 x B*2^16.
Textmode - The value must be 0, 1, 2.
0 means fill the text,
1 means stroke the text,
2 means fill then stroke the text.
alpha - A number from 0 to 255, identifying the alpha value. It is the transparency you want to add for the watermark, 0 being invisible.
Thanks,
ceTe Software Support Team.
Re: Adding Watermark
Forum member · May 6, 2009Thanks for your quick reply. The PdfViewController I'm using does not have a method called AddWaterMark.
I'm using ceTe.DynamicPDF.AxViewer.Control.DynamicPDFViewerControl from ceTe.DynamicPDF.AxViewer.Control.dll v1.1.0.0
thanks
Mike
Re: Adding Watermark
Support · May 6, 2009Hello Mike,
Adding watermark is an enterprise edition feature. You will be able to access this method if you are using the Enterprise edition product. Please try downloading the latest enterprise edition product from our CustomerArea
by logging in using your current product serial number and this will solve your problem.
If you do not have an enterprise edition then you will have to upgrade to enterprise edition to add watermarks.
Thanks,
ceTe Software Support Team.