RadDocument docx -> pdf missing watermark

2 posts, 0 answers
  1. Thorben
    Thorben avatar
    4 posts
    Member since:
    Dec 2012

    Posted 08 Sep 2014 Link to this post


    Using the newest Telerik version updated from Telerik Control Panel.

    Goal: Use OpenXML. Make a program that can load a docx document, add a watermark, save to docx and convert to pdf.

    I've made a program that reads a docx document into a WordprocessingDocument. It then adds a watermark and saves the docx. This works and afterwards i verified in Word 2013, that the watermark is in fact in the file.

    Then i need to convert this docx to a pdf using RadDocument & PdfFormatProvider. So i read the docx into a RadDocument using docxprovider.Import(stream) and save it using providerPdf.Export(document, output).

    The outcome is a pdf document without the watermark.

    What am i missing? Please advise.

    (I tried converting the very same generated docx document to pdf using a free online service, and it's working, adding a watermark to the generated pdf.)

    Best Regards,
  2. George
    George avatar
    500 posts

    Posted 11 Sep 2014 Link to this post

    Hello Thorben,

    Thank you for writing.

    I can confirm that this is indeed an issue in PdfFormatProvider. I have logged it on the following url: UI for Winforms Feedback Portal - FIX. PdfFormatProvider - Exporting a document with a watermark does not export the watermark. You can follow it or add any comments by following the url above. Due to the nature of the provider I cannot provide you with a workaround for the time being.

    I have also updated your Telerik Points for reporting this.

    Let me know, should you have other questions.

    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
  3. DevCraft R3 2016 release webinar banner
Back to Top