You're in violation with several rules regarding the free mailing list: http://lowagie.com/rule1

rule #3: subscribe to the mailing-list! See http://lowagie.com/itextml
rule #4: give a short description of your problem in the subject line
We get hundreds of mails with "HELP NEEDED" in the subject line.
Most of them are from suns, daughters, widows of an allegedly rich person who need help getting money transferred (aka Nigerian scams).

As for your question: drop the Element.ALIGN_TOP from your code.
It doesn't make sense.

It also beats me why you're using the setSimpleColumn method that takes a Phrase as parameter. I forgot it even existed because it isn't documented anywhere in the books or tutorials. Why not use showTextAligned, or why not use the ColumnText object with setText() (text mode: alignment = alignment of the column) or addElement() (composite mode: alignment = alignment of the elements added to the column). That way there is no doubt about the level at which the alignment is defined.

I should check the code, but the method you're using may be adding the Phrase in composite mode (which would surprise me, but that could explain why the alignment is wrong).

On 25/10/2012 14:16, Vávra Pavel wrote:

Hi,

Please I need help with position of table on page. How can I set the position of table verticaly?

I have second question... Please how Element.ALIGN_<...> works...? I need to use Element.ALIGN_RIGHT :

ct.SetSimpleColumn(new Phrase(new Chunk("ZUSATZINFOS:", FontFactory.GetFont("verdana-bold", 13, Font.NORMAL))),

40, 185, 530, 36, 36, Element.ALIGN_RIGHT | Element.ALIGN_TOP);

But text position is still calculated from left...

Please can you help me with this problems...?

Thank you very much!

Best regards

Pavel Vavra



------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct


_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to