Convert Arabic MS word document to correct pdf and text

Hi There,
I’m a new user for libreoffice and I want to convert Arabic MS word document to pdf and to text using this command

soffice --headless --convert-to txt filename.docx
soffice --headless --convert-to pdf filename.doc

For English characters it is OK, but for Arabic characters it gives me ????? , would you please help me and give me the correct command to do this.

Thanks

I found the following solution for arabic characters
soffice --headless --convert-to “txt:Text (encoded):UTF8” --outdir c:\tmp c:\doc\file.docx

Hi,
When I try to convert my PDF to Docx Arabic words get reversed.
for example سلام becomes ملاس
what should I do?
I use this command:

libreoffice --infilter=“writer_pdf_import” --convert-to docx test.pdf

can we specific a Unicode or something like that?

Also I’m using 7.2.3.2 version.

thanks.

You should post this as a new question, not a a comment to another topic.

2 Likes