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..