[EMAIL PROTECTED] wrote:
The layout is not different.It's the same.i send you a part of code.
field[1]="hi";
Paragraph p3 = new Paragraph("hi", font1);
p3.setAlignment(Element.ALIGN_RIGHT);
Chunk c1 = new Chunk(" "+field[1]+" ");
c1.setUnderline(Color.BLACK, 0.0f, 0.1f, 0.0f, -0.1f,
PdfContentByte.LINE_CAP_BUTT);
p3.add(c1);
So the field[1] is a String parametr in my code,but if i use such code with
different value of field[1] it will draw new file for each value.I want to send
for templete file different String parametrs,and get files,where this String
will be underline.
So the layout is draw a string under line, can i use such template for other
files?
Please keep on the mailinglist.
I think there is a big misunderstanding.
I think we have different definitions concerning layout.
When I read your code, I see 'CONTENT'.
I don't see anything that refers to 'LAYOUT'.
To me LAYOUT is the way CONTENT is presented on a page.
To me, the content could be 'Hi Bruno Lowagie'
or 'Hi Bruno Marie Lucien Willem Lowagie' (that's my full name).
Layout would be
+-------------------------------+
| Hi Bruno Lowagie, |
| how are you today? |
| |
+-------------------------------+
or
+-------------------------------+
| Hi Bruno Marie Lucien Willem |
| Lowagie, |
| how are you today? |
+-------------------------------+
You can't make a PDF template in advance with the 'Hi'
and the 'how are you today?', because you don't know
the position (the coordinates) of 'how are you today?'.
br,
Bruno
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions