php - Annoying bug of FPDF :: MultiCell() -


i've encountered strange bug of fpdf. code is:

$pdf = new fpdf('p', 'mm', 'a4'); $pdf->setxy(0,0);  $pdf->multicell(40, 5, "we want serve better", 1, 'r');  

for right alignment , same:

$pdf->multicell(40, 5, "we want serve better", 1, 'c');  

for center alignment. get, presented on following screenshot: http://img3.fotos-hochladen.net/uploads/fpdf9rwucik1xh.png "right" , "center" alignment respectively. aligns not absolutely relative right border of multicell.

what's more, automatic line break doesn't work.

just noticed, same alignment bug there in cell method.

having wasted 2 hours found nothing on internet. please fix.

solution found. had set font.

to honest, annoying. if else runs same problem, not more waste time that!


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -