While using the following code, my footer goes beyond the page (and is not visible):
$footer = $pdf->open_object();
$w = $pdf->get_width();
$h = $pdf->get_height();
$size = 10;
$color = array(.24,.65,.04);
$font = Font_Metrics::get_font("verdana", "bold");
$text_height = Font_Metrics::get_font_height($font, $size);
$text = "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.";
$width = Font_Metrics::get_text_width($text, $font, $size);
$pdf->page_text (16 , $y-15, $text, $font, $size, $color);
This way, footer is added for sure, but only a portion of text is visible. Any ideas?