PDFsharp & MigraDoc Foundation http://forum.pdfsharp.de/ |
|
drawstring and fontsize ratio http://forum.pdfsharp.de/viewtopic.php?f=2&t=1519 |
Page 1 of 1 |
Author: | code79 [ Sat Jan 22, 2011 5:50 am ] |
Post subject: | drawstring and fontsize ratio |
hi there, here the issue: I have unspecified pdf document whereon I must draw a string. the problem is that string dimension always must be the same indipendetly both PdfPage.Height and PdfPage.Weidth dimension. How can I find the exact ratio in order to calculate my string dimensione? (font size dimension) ? here the code I use to applying string to pdf document: Code: double xw = -page.Width.Point; gfx.RotateAtTransform(90, new XPoint(0, 0)); gfx.DrawString("prova", new XFont("Arial", 20), XBrushes.Red, 0, xw); gfx.RotateAtTransform(-90, new XPoint(0, 0)); please, help me.. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |