You can set the font and the text in PdfSignatureAppearance but don't forget to 
set PdfSignatureAppearance.RunDirection. If you want to draw everything 
yourself that's standard use of ColumnText for Arabic and there are a ton of 
examples about that.

Paulo

________________________________
From: Faisal Raza [[email protected]]
Sent: Tuesday, March 16, 2010 3:26 PM
To: [email protected]
Subject: [iText-questions] RTL Issue in Signature Appearance

Hi,
I am exploring itextsharp.dll and evaluating it for pdf signing and 
manipulation.
I want to use Arabic font in my Signature Appearance but unable to do that.
Can you please guide me that how I can set Arabic font and RTL in signature 
Appearance.
 The code I am trying is bellow.

PdfReader reader = new PdfReader(fileName)
PdfStamper stp = PdfStamper.CreateSignature(reader, os, '\0', null, true);
sap.SetVisibleSignature(myRect, 1, mySignatureName);
sap.Acro6Layers = true;
PdfTemplate n2 = sap.GetLayer(2);
PdfTemplate t = n2.CreateTemplate(width, height);;
Font font = FontFactory.GetFont(fontName, 
BaseFont.IDENTITY_H,BaseFont.EMBEDDED, 12);
BaseFont bf = font.GetCalculatedBaseFont(false);
t.BeginText();
t.SetFontAndSize(bf, mySize);
t.ShowText(s);
t.EndText();
Image img = Image.GetInstance(t);
n2.AddImage(img);
sap.SignDate = DateTime.Now;
sap.Reason = myReason;
sap.Location = myLocation;
sap.Contact = myContactInfo;

Note: when I use above code the resultant appearance not made ligatures.

please guide me if I am doing wrong

Best regards,
Rana


Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to