Aligning text ( paragraph ) into the middle vertically and horizontally inside SimpleCell ?

59 views
Skip to first unread message

Yordan Yanakiev

unread,
Mar 19, 2012, 5:45:49 PM3/19/12
to purepdf...@googlegroups.com
Hello.

I cant find a way to align text to be into the vertical and horozontal center of a SimpleCell.

I am trying this way :

var cell1 : SimpleCell        = new SimpleCell( SimpleCell.CELL );
cell1.widthpercentage     = 25;
cell1.verticalAlignment   = Element.ALIGN_MIDDLE;
cell1.horizontalAlignment = Element.ALIGN_CENTER;
var p : Paragraph = new Paragraph( 'ДDддд', PurePDFGenerator.pdf.cyrillicFont );
p.alignment = Element.ALIGN_CENTER;

Is it bug, or i am missing something.
Please help me.
Reply all
Reply to author
Forward
0 new messages