Extract watermark from RadDocument

2 posts, 0 answers
  1. Mariusz Gorzoch
    Mariusz Gorzoch avatar
    1 posts
    Member since:
    Sep 2012

    Posted 23 Aug 2013 Link to this post

    Hi,

    I have document containing watermark. Now I would like to extract this watermark and insert it into new document (RadDocument). 

    I saw watermark examples but they modify editor properties. How to get watermark from RadDocument object?

    Regards,
  2. Petya
    Admin
    Petya avatar
    975 posts

    Posted 26 Aug 2013 Link to this post

    Hi Mariusz,

    Watermarks are preserved in the header of each section, so you can obtain them in the following manner:
    string watermarkText = this.radRichTextBox.Document.Sections.First.Headers.Default.WatermarkSettings.TextSettings.Text;

    The obtained settings can be applied to another document as explained here. In case one of the document instances (either the one you want to copy from or the one you want to apply the watermark to) is not shown in RadRichTextBox, please refer to this article for information on how to use RadDocumentEditor.

    I hope this is helpful!

    Regards,
    Petya
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. DevCraft banner
Back to Top