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
Post a Comment