Skip to content

msinamsina/create-certificate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

create-certificate

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.

instalation

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

Possible issues

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

how to use:

python main.py -l path/to/file.csv -t "path/to/file.pptx"

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages