Tell me some convenient converter. It is good if it is php-shnaya, but even some program (of course, under Linux) that can be called with a command (like convert src dest ) will go. It is necessary to work with doc, docx, rtf.

  • one
    If you find, write the answer. I once searched, but found only online services with a bunch of restrictions and, in most cases, with a deterioration in image quality. Then I solved the problem by putting a computer with Windows, read the directory through samba, ran a Word and typed it through acrobat. But now I have a server not sideways, and sometimes I also need it - splash58
  • one
  • @donRumata is all cool, but raising a Windows server for conversion is not an option. I do not have a task to write something in a Word from pkhp. Nothing so complicated. Only conversion. - PECHAIR
  • Well then, libreoffice-common or something. - don Rumata
  • @donRumata libra does not start. I was busy with her for half a day. She then works, then hangs tightly. I do not know what it is. - PECHAIR

1 answer 1

You can use the standard for ubunta Libre Office

 lowriter --convert-to pdf filename.doc 

Or else you can in this way

 sudo apt-get install abiword abiword --to=pdf filename.doc 
  • Server on CentOS. You do not know how to put these things there? There yum. Just do not know the name of the package. Are they there at all? And what is better lowriter or abiword? - PECHAIRS
  • @DarkByte basically can convert any office suite, but abiword could not be found for cent OS, so here is the Libre installation manual, try if-not-true-then-false.com/2012/… - Sasha Borichevsky
  • In any case, this is a crutch, installing an office for the sake of a converter, but as far as I know, there is no separate converter. At least not met - Sasha Borichevsky
  • This is not a crutch, it is a package with functionality. For operations with specific types of files, a package is used to understand it, and operations with them. Same as .NET in a wider sense for launching .NET applications. It is more convenient to use the package rather than making self-written code to support multiple versions and compatibility. - Daniel Protopopov
  • one
    @DanielProtopopov is understandable, but it would be possible to pervert and extract specific functionality from the package, since you can do this in Linux, but a little lazy, and it does not make sense) - Sasha Borichevsky