Rashmi Banthia wrote:
Is there anyway I can align Chunk (like Paragraph) ?
That's one of the differences between Chunk and Paragraph.
I am looking for something like chunk.setAlignment(Element.ALIGN_LEFT).
A chunk is an atomic text structure, we won't add alignment, leading,...
to a Chunk.
Paragraph can be aligned with paragraph.setAlignment(Element.ALIGN_LEFT).
How about Phrase / Chunk ?
They can be wrapped in a Paragraph. That's what they're for.
Basically I am trying to add Header, which has two lines one Center
aligned and another left aligned like this:
-------------------------------------------------------------
Header1
SubHd
----------------------------------------------------------------
http://itext.sourceforge.net/tutorial/directcontent/pageevents/index.html#examples
br,
Bruno
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions