for create certificate you need an powerpoint template (.pptx) and one .csv file which every row of this file consists of all informataions you want to add to template.
the csv file should have a colunm "name" which is the name of output of every row.
first you should install libreoffice4.4 use this link to download and then use this link for install struction.
second install requirement:
pip install -r requirement.txt
install imagemagick
sudo apt install imagemagick
During conversion, two errors occur after running the convert command:
convert-im6.q16: not authorized `multiple_img.pdf' @ error/constitute.c/ReadImage/412.
convert-im6.q16: no images defined `output-%3d.jpg' @ error/convert.c/ConvertImageCommand/3258.
For the first error, you can edit /etc/ImageMagick-6/policy.xml
and change the following line:
<policy domain="coder" rights="none" pattern="PDF" />
to
<policy domain="coder" rights="read|write" pattern="PDF" />
For the second error, this is because ghostscript has not been installed on the system. Try to install it:
apt install ghostscript
python main.py -l path/to/file.csv -t "path/to/file.pptx"