Get the field position and write your text there using PdfContentByte.

Paulo 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Robbie Haertel
> Sent: Wednesday, July 26, 2006 12:51 AM
> To: [email protected]
> Subject: [iText-questions] Leading "dots" and right-aligned form field
> 
> For our application, we have an interactive form that we use 
> to merge xfdf data into.  Some of the fields on the form are 
> right aligned and have trailing dots, i.e. 
> "Language.....English", where "English" is a field on the form. 
>  Obviously, names of languages occupy varying amounts of 
> space.  The first thing we tried to do was to make a 
> right-justified textbox and add a large number of periods.  
> Despite the fact that the box is right-justified, the result 
> in Acrobat is that only the periods show and not the language name.
> 
>  
> 
> Has anybody else had this problem? What have you done to 
> fix/workaround this problem?
> 
>  
> 
> One workaround we though of was to dynamically resize the 
> textbox to make it fit the text exactly, and statically have 
> the dots in the background. The problem is, we don't know how 
> to use iText to get the coordinates of a field and much less 
> how to change those coordinates.
> 
>  
> 
> Anybody know how to do this?
> 
>  
> 
> Thanks in advance,
> 
> Robbie
> 
> 


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.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to