problems with zend_pdf and right to left language and unicode?
- by user1400
hi all,
i am using zend_pdf to create pdf files for Ritgh to left language as arabic or east asia langauges
i use of this code
$pdfDoc = new Zend_Pdf();
$pdfPage = $pdfDoc->newPage(Zend_Pdf_Page::SIZE_A4);
$font = Zend_Pdf_Font::fontWithPath(APPLICATION_PATH.'/Fonts/arial.ttf');
$pdfPage->setFont($font, 36);
$pdfDoc->pages[] = $pdfPage;
$unicodeString = '????';
$pdfPage->drawText($unicodeString, 72, 720, 'UTF-8');
$pdfDoc->save('utf8.pdf');
but there are two problem
1- how can i change document's direction to right to left ?
2- characters are separated one by one. but in some laguages characters of a word are joint together.
any idea? or i may use tcpdf?
thanks