Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

Re: [iText-questions] Rigth_alignment in PdfPCells does not work
 inv2.0.4???

Andreas Reuss Christensen

2007-08-01

Replies:

OK, that works fine, but I still think this is odd....

Med venlig hilsen / Best regards,
Andreas Reuss Christensen

NPS2 A/S

Helgeshøj Alle 33, 8.3
2630 Taastrup

E-mail  : andreas.christensen@(protected)
Phone  : +45 33 33 12 92
Fax     : +45 33 33 63 44

-----Original Message-----
From: itext-questions-bounces@(protected)
Sent: 1. august 2007 16:36
To: Post all your questions about iText here
Subject: Re: [iText-questions] Rigth_alignment in PdfPCells does not work inv2.0.4???

Put the alignment in the Paragraph.

Paulo

----- Original Message -----
From: "Andreas Reuss Christensen" <andreas.christensen@(protected)>
To: <itext-questions@(protected)>
Sent: Wednesday, August 01, 2007 2:55 PM
Subject: [iText-questions] Rigth_alignment in PdfPCells does not work in
v2.0.4???


Example:



PdfPTable table = new PdfPTable(2);

PdfPCell cell = new PdfPCell();

cell.addElement(new Paragraph("Hej"));

table.addCell(cell);

cell.setHorizontalAlignment(PdfPCell.ALIGN_RIGHT);



cell = new PdfPCell();

cell.setHorizontalAlignment(PdfPCell.ALIGN_CENTER);

cell.addElement(new Phrase("Hej"));

table.addCell(cell);



add(table);





Both the Cells align left?????!!!!!!!!!



What do I do wrong?



Med venlig hilsen / Best regards,
Andreas Reuss Christensen


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
iText-questions mailing list
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
iText-questions mailing list
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/
©2008 junlu.com - Jax Systems, LLC, U.S.A.