Forum


Replies: 2   Views: 3855
Problem with converting cyrillic docx files to pdf
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by DISTROID  · 15-01-2014 - 12:45

Hello,

In order to buy your product I test your PRO-Trial version. I run the following code:



        $docx = new CreateDocx();

        $docx->setLanguage('ru-RU');

        $text = 'этот текст написан кириллицей - this is cyrillic text';

        $paramsText = array(

            'b'     => 'on',

            'font'    => 'Arial Cyrillic'

        );

        $docx->addText($text, $paramsText);

        $docx->createDocx('example_text');



        $document = new TransformDoc();

        $document->setStrFile('example_text.docx');

        $document->generatePDF();



Unfortunately, the result PDF file is incorrect:



???? ????? ??????? ?????????? - this is cyrillic text



but example_text.docx is ok:



этот текст написан кириллицей - this is cyrillic text