4 Replies Latest reply: Dec 1, 2011 2:50 AM by hellorubesh RSS

    Watermark in c# .net

    hellorubesh Community Member

      Hi,

      I saw the sample for adding watermarks in the sample programs folder that comes with SDK; I see a way to do this -

       

      object  [] addTextWatermarkParam = { currentTime.ToShortTimeString(), 1, "Helvetica", 50, blueColorObj, 0, 0, true, true, true, 0, 3, 20, -45, false, 1.0, false

      , 0, 0.7 };

       

       

      T.InvokeMember( "addWatermarkFromText", BindingFlags.InvokeMethod | BindingFlags.Public | BindingFlags.Instance, null

      , jsObj, addTextWatermarkParam);

       

      But this adds the watermark only to the first page, what I am looking for is an option to add watermark to all pages; and also an option to add watermark only to certain pages which I choose.

      Is this possible in C#? If so, could you please provide me a sample?

       

      Thanks.