You should be able to do this by creating a two-cell table, putting the
left-aligned material in the left cell and the right-aligned material (phone
number) in the right cell and using cell-alignment commands for each (book
p. 168). If the text of the two columns might overlap, then do this for only
the line on which the phone number appears.

Hope that helps,

---mr. bean


Rob Tanner wrote:
> 
> Hi,
> 
> I build a PDF telephone directory of faculty, staff and students that 
> goes up on our internal web server every night.  Currently, I produce a 
> text file of Latex mark-up and use PDFLatex to produce the PDF.  I'm 
> trying to switch it over to iText and of come across the first of 
> probably several problems in maintaining the original format.
> 
> I'm using the multicolumn text class to produce two columns on every 
> page and building each directory entry as a set of three paragraphs.  My 
> problem is the first paragraph of the directory entry.  The person's 
> name, mail-stop and email are left justified, added individually as 
> chunks to the first paragraph.  But the phone number needs to be right 
> justified (i.e., bang up against the right edge of the column).  How do 
> I right justify that chunk and only that chunk? 
> 
> Thanks,
> Rob
> 
> 
> 
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> Buy the iText book: http://itext.ugent.be/itext-in-action/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Newbie-question-on-justifying-text-tp14762859p14774462.html
Sent from the iText - General mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to