zedomel / certificate-generator Goto Github PK
View Code? Open in Web Editor NEWPHP script to generate certificates for participation in events.
License: GNU General Public License v3.0
PHP script to generate certificates for participation in events.
License: GNU General Public License v3.0
Hello,
Thanks for this beautiful work.
However, I could not find a section describing how to use this project in creating custom certificate.
I will so much appreciate if you can help me with this.
Thanks in anticipation.
Hello,
I am trying to follow the readme instructions to change the page margins, but when I go to inc/config.php there are no options to change them. I tryed to change directly on tcpdf.config.php document but I don't work neither.
I am new learning about scripts and coding so I am wondering what am I doing wrong.
Could you please help me find out how can I change page margins?
Thank you.
Hi, thank you for this script! It's so useful.
I just noticed that when I run the example the PDFs are output without the "." in the filename. e.g. 0pdf
instead of 0.pdf
Changing line 157 of certgen.php to include a period in $output.DIRECTORY_SEPARATOR.$i.'.pdf'
fixes the issue.
FROM:
$output_file = isset($row[$email_col_name]) ? $output.DIRECTORY_SEPARATOR.strtolower(trim($row[$email_col_name])).'.pdf' : $output.DIRECTORY_SEPARATOR.$i.'pdf';
TO:
$output_file = isset($row[$email_col_name]) ? $output.DIRECTORY_SEPARATOR.strtolower(trim($row[$email_col_name])).'.pdf' : $output.DIRECTORY_SEPARATOR.$i.'.pdf';
Happy to provide a pull request if you'd like, but your contributing docs said to submit issues.
Thanks again for the script!
I need to send 700+ certificates. Is it possible to do it with a single mail ID in a single shot?
I have put images in img folder. If I open HTML file in browser then it displays image in browser correctly. But when I apply certgen.php file then in all PDFs, it is showing no image.
<!DOCTYPE html >
<html lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta charset="utf-8" />
</head>
<body>
<div style="margin-left:350px; margin-top: 380px;">
<p>{{ firstName }}</p>
<img src="img/1.png">
</div>
</body>
</html>
Hi i followed the instructions provided to change default font. I executed the exact script. Same message displayed, but still when i generate certificates, i am getting tahoma font. I changed default font in inc config also
Plz guide me how to set and use arial font.
Hello, trying to build an example certificate. Created the certificate with ppt, tried zamzar and powerpoint2html but both failed on converting to pdf..
Yes it creates the pdf but format fails completely..
this is the webpage look.
contest-sertifika.html.zip and this is the code..
And this is created pdf..
What am I doing wrong
Didnt use the placeholders yet.. Just trying to see the main file.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.