You'll have to create your text at precise positions. Use
BaseFont.getWidthPoint() to find the size of you text. For multi-line use
ColumnText.

Best Regards,
Paulo Soares

> -----Original Message-----
> From: prashant kakani [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, November 08, 2002 16:14
> To:   [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject:      [iText-questions] Regarding my problem , plz help :-)
> 
> Dear iText Developers,
> 
> I have a problem and would really appreciate if anybody could give me an
> idea and help me.
> 
> Well, in my PDF , i have a list of Dynamic data written ( the number of
> items varies ) and after this dynamic data, I have a few check-boxes to
> create.
> 
> Till, now i used to create check-boxes this way:
> 
> PdfAcroForm acroForm = writer.getAcroForm();
> 
> if ("Y".equals(thePlacementJustificationBean.getMedicalServiceFlag())) 
>                                    { 
>     acroForm.addCheckBox("n1", "v1", true, 50, 313, 60, 322);  
>          } else {
>     acroForm.addCheckBox("n1", "v1", false, 50, 313, 60, 322);
>        }
> 
> But for this way I need to know the location as to where i'm putting the
> check-box ( like 50, 313, 60, 322 ) ; since the preceding data is dynamic
> how do I find where exactly the preceding Paragraphs, Chunks ,.. etc..
> come to an end,  as far as location is concerned. I actually have dynamic
> Paragraphs preceding.The number of paragraphs is dynamic. So could anybody
> help me in how i can work on this?.. if there is any other way on working
> on my problem too, please let me know and help me. 
> 
> I'll be really very thankful for your help... plz help me..
> 
> Thanks :-)
> prashant
> 
> 
> 
>   _____  
> 
> Do you Yahoo!?
> U2 on LAUNCH
> <http://rd.yahoo.com/launch/mailsig/*http://launch.yahoo.com/u2> -
> Exclusive medley & videos from Greatest Hits CD


-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm 
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to