Hi Team,
I am using Digital Signature using certificate sample to test the signing feature. Almost all the files the Signature panel comes under left bottom of the page. But few documents, the signature panel appears at the center of the page. when i check the media box it values are like this /MediaBox[-1728.12 -1296 1728.12 1296] .Seems the page origin is centered. How to have the signature panel like the normal file( that is at left bottom). Here below the appearance handler. Any help would be great help.
Code:
public void DrawAppearance(XGraphics gfx, XRect rect)
{
var font = new XFont("Times New Roman", 7.0, XFontStyleEx.Regular);
var textFormatter = new PdfSharp.Drawing.Layout.XTextFormatter(gfx);
double signatureHeight = rect.Height * .4;
var point = new XPoint(rect.Width / 10, rect.Height / 10);
point = new XPoint(point.X, rect.Height / 2d);
textFormatter.DrawString("testsign", font, XBrushes.Black, new XRect(point.X, point.Y, rect.Width, rect.Height - point.Y), XStringFormats.TopLeft);
}