Pergunte aqui

Perfil de shasi - atividade

2015-09-05 15:01:25 +0100 Medalha recebida  Pergunta famosa (fonte)
2015-09-05 15:01:25 +0100 Medalha recebida  Pergunta notável (fonte)
2014-04-14 11:30:03 +0100 Medalha recebida  Editor (fonte)
2014-04-14 10:56:12 +0100 Pergunta comentada RTF to PDF conversion fails for strange images

Well, i noticed that the problem is not with the size of the RTF file, but due to a strange image inside it.

2014-04-14 09:13:48 +0100 Medalha recebida  Pergunta popular (fonte)
2014-04-11 15:06:34 +0100 Medalha recebida  Estudante (fonte)
2014-04-11 14:29:27 +0100 Perguntou RTF to PDF conversion fails for strange images

I am converting RTF file to PDF with Libreoffice in headless mode, via PHP code.

Here is my sample code:

shell_exec('libreoffice4.2 --headless --invisible --norestore --convert-to pdf --outdir /pdf /html/test.rtf');

I observed that Libreoffice is not able to convert the RTF to PDF file, if the RTF file contains any strange images, like this one

All the text is converted to PDF just fine, but don't know what is preventing Libreoffice to skip the conversion in the case of existence of strange images in RTF file. The same RTF file containing strange images could be converted to PDF, using the COM extension of PHP under Windows.

2014-04-11 14:28:50 +0100 Medalha recebida  Pergunta famosa (fonte)
2014-04-04 11:49:49 +0100 Medalha recebida  Torcedor (fonte)
2014-04-03 12:45:39 +0100 Medalha recebida  Autodidata (fonte)
2014-04-03 12:45:39 +0100 Medalha recebida  Professor (fonte)
2014-04-03 10:33:01 +0100 Medalha recebida  Pergunta notável (fonte)
2014-04-03 09:59:59 +0100 Resposta comentada Chinese characters show unreadable square
2014-04-03 09:43:28 +0100 Respondeu uma pergunta Install Language packs for Libreoffice 4.2

Well, i found that the issue lies in the lack of language support for the CentOS. When i installed missing language packs for CentOS, the corresponding PDF files showed correct data.

Here i got useful information.

So what i did was: yum groupinstall "Chinese Support", yum groupinstall "Japanese Support", yum groupinstall "Korean Support".

2014-04-03 02:26:21 +0100 Medalha recebida  Pergunta popular (fonte)
2014-04-02 15:53:36 +0100 Perguntou Install Language packs for Libreoffice 4.2

I have installed Libreoffice 4.2.0.4 on my CentOS 6.5, following the instructions from [here ]. ( http://www.tecmint.com/install-libreo... ).

What i am trying actually is to convert the RTF to PDF document using the Libreoffice headless command from php:

exec('libreoffice4.2 --headless --invisible --norestore --convert-to pdf --outdir /pdf /docs/test.rtf');

But i see that the converted PDF file is not containing the text from languages like Chinese, Japanese, Korean. So i think i need to install the language packs for Libreoffice. I have tried searching them through command like:

yum search libreoffice4

But see that there is no language pack listed there. I only see the following list:

libreoffice4.2.x86_64 : Brand module for LibreOffice 4.2 .0.4
libreoffice4.2-base.x86_64 : Base brand module for LibreOffice 4.2 .0.4
libreoffice4.2-calc.x86_64 : Calc brand module for LibreOffice 4.2 .0.4
libreoffice4.2-dict-en.x86_64 : En dictionary for LibreOffice 4.2 .0.4
libreoffice4.2-dict-es.x86_64 : Es dictionary for LibreOffice 4.2 .0.4
libreoffice4.2-dict-fr.x86_64 : Fr dictionary for LibreOffice 4.2 .0.4
libreoffice4.2-draw.x86_64 : Draw brand module for LibreOffice 4.2 .0.4
libreoffice4.2-en-US.x86_64 : Brand language module for LibreOffice 4.2 .0.4
libreoffice4.2-freedesktop-menus.noarch : LibreOffice desktop integration
libreoffice4.2-impress.x86_64 : Impress brand module for LibreOffice 4.2 .0.4
libreoffice4.2-math.x86_64 : Math brand module for LibreOffice 4.2 .0.4
libreoffice4.2-ure.x86_64 : UNO Runtime Environment .0.4
libreoffice4.2-writer.x86_64 : Writer brand module for LibreOffice 4.2 .0.4

Is there a way of installing the language packs for Chinese, Japanese and Korean ?