- Login into Ec2 instance via SSH.
- Upgrade Amazon Linux.a) > sudo yum updateb) Reboot instance
- Login into Ec2 instance via SSH.
- Download LibreOffice (Select package depends on OS Architecture)> sudo wget LibreOffice
- Extract source from tar file.> sudo tar -xvzf LibreOffice_4.0.4_Linux_x86-64_rpm.tar.gz
- Enter into extracted directory then RPMS folder> cd LibreOffice_4.0.4.2_Linux_x86-64_rpm> cd RPMS
- Now need to install all rpms except one, you can remove that.> rm -rf libobasis4.0-gnome-integration-4.0.4.2-2.x86_64.rpm
- Now you can able to convert document.> /opt/libreoffice4.0/program/soffice.bin –headless –convert-to pdf test.rtf
- If you are getting any dependencies while document conversation please fulfill dependency.
- All packages almost available for all Linux flavors from two sources.
11) In my case there was dependencies for dbus-glib-0 while document conversation.
> sudo wget http://mirror.centos.org/centos/6/updates/x86_64/Packages/dbus-glib-0.86-6.el6.x86_64.rpm
OR
> sudo rpm -Uvh http://mirror.centos.org/centos/6/updates/x86_64/Packages/dbus-glib-0.86-6.el6.x86_64.rpm
Able to perform document convent process headless after successful installation of LibreOffice.
Feel free to contact if anyone need help !