Code Monkey home page Code Monkey logo

certificate-generator's People

Contributors

zedomel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

certificate-generator's Issues

How to use certificate-generator to create certificates

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.

Can't set up margins of the pdf generated

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.

Filename missing period before "pdf"

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!

Image is not being loaded

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>

image

Font Change not working

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.

problem on converting

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..
2019-10-15_02-08-34
this is the webpage look.
contest-sertifika.html.zip and this is the code..
2019-10-15_02-10-57

And this is created pdf..
What am I doing wrong
Didnt use the placeholders yet.. Just trying to see the main file.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.