PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
Watermark in MigraDoc document. https://forum.pdfsharp.net/viewtopic.php?f=2&t=1894 |
Page 1 of 1 |
Author: | sumit [ Wed Feb 01, 2012 1:04 pm ] |
Post subject: | Watermark in MigraDoc document. |
Hi, I am using MigraDoc to generate PDF files in c#. I have to add an image as watermark. How to do it? I dont want to mix both PDFSharp and MigraDoc. Have any idea? Please help. Its urgent. Thanks |
Author: | Thomas Hoevel [ Wed Feb 01, 2012 3:17 pm ] |
Post subject: | Re: Watermark in MigraDoc document. |
Hi! You can add the watermark to the page header, so it will be drawn automatically on every page. I'd suggest using a page from a PDF file as watermark. The header can contain an image that will fill the whole page. Just use WrapStyle.Through for that image. See this example: viewtopic.php?p=4370#p4370 The approach with a PDF page will work for static watermarks only. If you want to draw varying text as watermark, better mix MigraDoc and PDFsharp. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |