View previous topic :: View next topic |
Author |
Message |
brownman
Joined: 27 Feb 2009 Posts: 4
|
Posted: Mon Mar 16, 2009 6:45 pm Post subject: Draw watermark on top of all other elements on page |
|
|
Hey. I am currently using PDFSharp to do some post processing duties for existing documents.
My application exports a PDF from a Crystal Report. I then take the exported PDF and draw a watermark on each page. However when the watermark appears behind all other elements. Is there a way to make sure that the watermark is on top of all other elements? |
|
Back to top |
|
|
Thomas Hoevel
Joined: 16 Oct 2006 Posts: 387 Location: Cologne, Germany
|
Posted: Tue Mar 17, 2009 7:45 am Post subject: |
|
|
Yes, make the watermark the last item on the page.
Check the Watermark sample. _________________ Regards
Thomas Hoevel
PDFsharp Team |
|
Back to top |
|
|
brownman
Joined: 27 Feb 2009 Posts: 4
|
Posted: Tue Mar 17, 2009 2:23 pm Post subject: |
|
|
Thanks. This did the trick.
Code: | // Get an XGraphics object for drawing above the existing content
XGraphics gfx = XGraphics.FromPdfPage(page, XGraphicsPdfPageOptions.Append); |
|
|
Back to top |
|
|
|