Greetings,
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,
T
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,
T