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

How to print text vertically
https://forum.pdfsharp.net/viewtopic.php?f=2&t=2425
Page 1 of 1

Author:  tniner [ Mon May 06, 2013 4:35 pm ]
Post subject:  How to print text vertically

How can I print a text string and have the text print vertically?

Seems like I want something like
gfx.DrawString("Hello, World!", font, XBrushes.Black,
new XRect(0, 0, pages.Width, pages.Height),
XStringFormats.TopCenter);

where there is XStringFormats.PrintDown

is this possible? I have found I can use my own true type font to print barcodes, but I want that to print vertically

Author:  Thomas Hoevel [ Mon May 06, 2013 4:39 pm ]
Post subject:  Re: How to print text vertically

You can use transformations for that purpose, e.g. RotateAtTransform or RotateTransform.
See also:
http://www.pdfsharp.net/wiki/XForms-sample.ashx

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