PDFsharp & MigraDoc Foundation
http://forum.pdfsharp.de/

vertical watermark regardless pdf resolution
http://forum.pdfsharp.de/viewtopic.php?f=2&t=1518
Page 1 of 1

Author:  code79 [ Fri Jan 21, 2011 6:00 am ]
Post subject:  vertical watermark regardless pdf resolution

Hi all, this is my first post.

The issue: my purpouse is to apply to existent pdf a vertical watermark regardless pdf file resolution (or DPI?).
Also my watermark should appear on right side starting by heigh vertex like following:

--------
| m |
| a |
| r |
| k |
--------

How can I do it?
Thnaks in advance..

Author:  code79 [ Sat Jan 22, 2011 5:36 am ]
Post subject:  Re: vertical watermark regardless pdf resolution

Well - I reply to myself
I solved through following code:

Code:
  double xw = -page.Width.Point;
              gfx.RotateAtTransform(90, new XPoint(0, 0));
              gfx.DrawString("prova", new XFont("Arial", 20), XBrushes.Red, 30, xw + 20);
              gfx.RotateAtTransform(-90, new XPoint(0, 0));

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