function init_pdf($pagesize, $orientation, $title) { global $layout; $diff = array(177 => 'aogonek', 161 => 'Aogonek', 230 => 'cacute', 198 => 'Cacute', 234 => 'eogonek', 202 => 'Eogonek', 241 => 'nacute', 209 => 'Nacute', 179 => 'lslash', 163 => 'Lslash', 182 => 'sacute', 166 => 'Sacute', 188 => 'zacute', 172 => 'Zacute', 191 => 'zdot', 175 => 'Zdot', 185 => 'scaron', 169 => 'Scaron', 232 => 'ccaron', 200 => 'Ccaron', 236 => 'edot', 204 => 'Edot', 231 => 'iogonek', 199 => 'Iogonek', 249 => 'uogonek', 217 => 'Uogonek', 254 => 'umacron', 222 => 'Umacron', 190 => 'zcaron', 174 => 'Zcaron'); $pdf = new Cezpdf($pagesize, $orientation); //landscape/portrait $pdf->isUnicode = true; $pdf->addInfo('Producer', 'LMS Developers'); $pdf->addInfo('Title', $title); $pdf->addInfo('Creator', 'LMS ' . $layout['lmsv']); $pdf->setPreferences('FitWindow', '1'); $pdf->ezSetMargins(PDF_MARGIN_TOP, PDF_MARGIN_BOTTOM, PDF_MARGIN_LEFT, PDF_MARGIN_RIGHT); $pdf->setLineStyle(0.5); $pdf->setFontFamily('arial', array('b' => 'arialbd')); $pdf->selectFont('arial', array('encoding' => 'WinAnsiEncoding', 'differences' => $diff), 1, true); return $pdf; }