Logo

dev-resources.site

for different kinds of informations.

How to install Unoconv

Published at
4/20/2021
Categories
linux
fedora
pdf
libreoffice
Author
jperez2511
Categories
4 categories in total
linux
open
fedora
open
pdf
open
libreoffice
open
Author
10 person written this
jperez2511
open
How to install Unoconv

unoconv (Universal office convert) is a very special tool when it comes to converting Word files to PDF.

Installation

0. Verify if python is installing
if you don't have python installed so:

## look for the latest version
sudo dnf install python3.8

## set aliases
alternatives --set python /usr/bin/python3

## more information 
man unversioned-python
Enter fullscreen mode Exit fullscreen mode

1. install libreOffice
important! download the latest stable version compatible with unoconv from http://download.documentfoundation.org/libreoffice/stable

## download libreoffice
wget http://download.documentfoundation.org/libreoffice/stable/6.0.4/deb/x86_64/LibreOffice_6.0.4_Linux_x86-64_deb.tar.gz

## unzip
tar -xvf LibreOffice_6.4.7_Linux_x86-64_rpm.tar.gz

## install RPM
cd LibreOffice_6.4.7_Linux_x86-64_rpm/RPMS
dnf install *.rpm
Enter fullscreen mode Exit fullscreen mode

2. install unoconv

git clone https://github.com/dagwieers/unoconv.git
# this 
cp unoconv/unoconv /usr/bin
# or 
ln -s unoconv/unoconv /usr/bin/unoconv
Enter fullscreen mode Exit fullscreen mode

*3. configure service for apache *
first, edit or create this file:

vi /etc/systemd/system/unoconv.service
Enter fullscreen mode Exit fullscreen mode

second, paste the following text, but it's important to replace UNO_PATH with the libreOffice installation path.

[Unit]
Description=Unoconv listener for document conversions
Documentation=https://github.com/dagwieers/unoconv
After=network.target remote-fs.target nss-lookup.target

[Service]
Type=simple
Environment="UNO_PATH=/usr/lib64/libreoffice/program"
ExecStart=/usr/bin/unoconv --listener

[Install]
WantedBy=multi-user.target
Enter fullscreen mode Exit fullscreen mode

now you can start unoconv service

systemctl enable unoconv.service
systemctl start unoconv.service
Enter fullscreen mode Exit fullscreen mode
libreoffice Article's
24 articles in total
Favicon
The Struggle of Finding a Free Excel to PDF Converter: My Journey and Solution
Favicon
Write custom formulae in Libreoffice Calc with Python
Favicon
Extract Content From ODF files using C#
Favicon
Connect LibreOffice Calc to SingleStoreDB using ODBC
Favicon
PK11_Authenticate failed with SEC_ERROR_BAD_PASSWORD (-8177)
Favicon
How to setting libre fffice mailmerge that doesn't work
Favicon
Installing Libre Office in Kali Linux
Favicon
Loading Images Into a LibreOffice Calc Grid
Favicon
How to install Unoconv
Favicon
Collabora Online Community Roundup #10
Favicon
Collabora Online Community Roundup #9 (New Year Edition!)
Favicon
Collabora Online Community Roundup #8
Favicon
Collabora Online Community Roundup #7
Favicon
Collabora Online Community Roundup #6
Favicon
Collabora Online Community Roundup #5
Favicon
Collabora Online Community Roundup #4
Favicon
Collabora Online Community Roundup #3
Favicon
Collabora Online Community Roundup #2
Favicon
Developing a Redaction Feature for LibreOffice - Phase 1
Favicon
Install LibreOffice 7 in 1 minute
Favicon
LibreOffice: ๆ—ฅๆœฌ่ชžใฎๆผขๅญ—็ฎ‡ๆ‰€ใซไธญๅ›ฝ่ชžใฎใƒ•ใ‚ฉใƒณใƒˆใŒ่กจ็คบใ•ใ‚Œใ‚‹็พ่ฑก
Favicon
How to Greek polytonic on openbox
Favicon
Why I want to use JSON in LibreOffice Calc.
Favicon
OpenOffice docs and Python

Featured ones: