svg2pdf command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
svg2pdf: command not found
or when using sudo you get the following error message
sudo: svg2pdf: command not found
Solutions to svg2pdf: command not found
How To Fix svg2pdf: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu svg2pdf is provided by python3-svglib package.
python3-svglib is:
Used as a package you can read existing SVG files and convert them into ReportLab Drawing objects that can be used in a variety of contexts, e.g. as ReportLab Platypus Flowable objects or in RML. As a command-line tool it converts SVG files into PDF ones (but adding other output formats like bitmap or EPS is really easy and will be better supported, soon).
To fix this problem, we can install more using the command below.
sudo apt-get -y install python3-svglib
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install python3-svglib.
sudo apt -y install python3-svglib
Or if you have aptitude installed you can use the following command.
sudo aptitude install python3-svglib
Summary
In this tutorial we learn how to fix svg2pdf command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.