function formatItForRect($string, $length) { $final_result = str_split(formatIt($string), $length); return $final_result; }
function printOverflowPages($pdf) { foreach ($this->page_data as $page) { $pdf->AddPage('P', 'A4'); $pdf->SetFont('Lato-Reg', '', 30); $pdf->Text(5, 15, formatIt($page['name'])); $pdf->SetXY(5, 20); $format = setTwoColFormat(60, 90, 2, 8, 8); writeTwoColumns($pdf, $page['data'], $format, 4, 2); } }