PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
Watermark with MigraDoc https://forum.pdfsharp.net/viewtopic.php?f=2&t=1171 |
Page 1 of 1 |
Author: | pesantsi [ Wed May 05, 2010 8:46 pm ] |
Post subject: | Watermark with MigraDoc |
Hi, I've been searching a way to add a watermark to my document with MigraDoc, but it only seems to be feasible with PDFSharp. Does anyone have an idea how to do it? Maybe I'm not doing the right thing, but I want to set an Image in my section that will use the whole page and add Text over this image. Thanks for your help. Simon |
Author: | Thomas Hoevel [ Thu May 06, 2010 8:00 am ] |
Post subject: | Re: Watermark with MigraDoc |
Hi! You can do this with MigraDoc: just add an image with absolute position and absolute size to every page. That's the drawback: you must do it for every page, so you must know where pagebreaks are. Rather use the technique shown here: http://www.pdfsharp.net/wiki/MixMigraDo ... ample.ashx You can use GetDocumentObjectsFromPage if you need different images for different sections. See here: viewtopic.php?p=1939#p1939 You can add a Tag to MigraDoc objects (e. g. Section or Paragraph) to determine which image to use. See also: viewtopic.php?p=1407#p1407 |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |