PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

how to create watermark using MigraDoc alone.
https://forum.pdfsharp.net/viewtopic.php?f=2&t=1707
Page 1 of 1

Author:  nareshreddy [ Mon Jun 27, 2011 3:01 pm ]
Post subject:  how to create watermark using MigraDoc alone.

Hi

i want to create the text watermark on the MigraDoc pdfdocument.

i saw the samples.
how to pass the MigraDoc section instead of page in the following FromPdfPage()
XGraphics gfx = XGraphics.FromPdfPage(page, XGraphicsPdfPageOptions.Prepend);


Note:i havn't used any PdfSharp pages

Author:  Thomas Hoevel [ Mon Jun 27, 2011 4:01 pm ]
Post subject:  Re: how to create watermark using MigraDoc alone.

You must create a PDF file from your MigraDoc document.

You can call RenderPage to draw the MigraDoc page on a PDF page you created and add the watermark to the same page.

See this code snippet:
viewtopic.php?p=1735#p1735

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/