Code Monkey home page Code Monkey logo

certificate's Introduction

Certificate Generation System

INSTALLATION/SETUP

This application is a portable application used to Generate Certificate for single candidate providing his/her details along with image,
As well as for Batch/Number of candidates by simply providing the CSV format file (containing details of every candidate) along with candidate images in a compressed (tar.gz or zip) folder.

Requirements(automatically installed during setup)

  1. Apache web server
  2. php interpreter
  3. unoconv
  4. python3-uno

Setup

cd ../path/to/certificate/
./install.sh

P.S. Don't run it with sudo.

Congratulations! You have successfully set it up.

Go to http://localhost/Certificate/CGS/

OR

http://localhost/~username/Certificate/CGS/(if Usermode is enabled in apache configuration)

USER MANUAL

As the Name "Certificate Generation System" Implies this application is used to generate certificate in an automated manner in few steps:

  1. Select Design from the images shown on the first page. ( Put mouse pointer over the image to see larger view. )

  2. Next Page will be page for entering Institute Details.

    Fill in the details of institution for which the certificate(s) is to be made.

    Place mouse pointer over Input box te see an example for that input.

  3. Next page will show two options

    Manual Entry -> Select it for Generating Certificate for Single candidate.

    Upload Csv File -> Select it for Generating certificate for more than 1 candidate by providing their details in Csv file.

    Manual Entry

    On Selecting Manual Entry Next page will open containing input boxes for candidate Details.

    Enter the details and select the image also.

    Live Image Selector

    Next you will be displayed your selected image and a selection box.

    Resize and move the selection box to desired position and size.

    Download

    Thats it your certificate is generated and can be downloaded in two formats

    -> odt ('O'penOffice 'D'ocument 'T'ext)

    -> pdf ('P'ortable 'D'ocument 'F'ormat)

    Also by clicking on "Generate Another Ceritificate" you can generate another certificate

    with same design & institute details and different Candidate Details.

    And by clicking on "Goto First Page" you can again start from Design Selection Page.

    Upload csv file

    On selecting 'Upload csv File' Next page will open containing the conditions for the files

    to be uploaded for certificate generation.

    A sample file can be downloaded from the link provided in the 'Note' in the instructions on page.

    Sample file is a zip file named sample.zip containing the csv file and tar.gz file for images.

    Extract it and then sample certificates can be produced using 'sample.csv' and 'images.tar.gz' files.

    That's it your certificate file is produced for all the candidates provided in the csv data file.

    Download

    Produced Certificate file can be downloaded in two formats again.

    -> odt ('O'penOffice 'D'ocument 'T'ext)

    -> pdf ('P'ortable 'D'ocument 'F'ormat)

    And by clicking on "Goto First Page" you can again start from Design Selection Page.

certificate's People

Contributors

amarjeetkapoor1 avatar amisha2016 avatar hsrai avatar jasleenkaur avatar mandeeps708 avatar rupinderwadali avatar sukhtaaj avatar vigasdeep avatar

Stargazers

 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar

certificate's Issues

Certificate without image?

Currently, there doesn't seem to be a way to create a cert without an image.

I think most of the times, one doesn't have images.

Send email after Certificate Generation

Here is TTD for this issue

  1. Ask For email before the selection of Template
  2. After Certificate is generated. Send the email to the user with link to download.
  3. Show click here to download, and notify user that email has been sent too.

To Discuss: We may need to use database now, what others think?

Improve User Interface

User Interface of this project need to be improved making it easy to work on certificate system.

Download Pdf

Download pdf option not working under the feature "Fill candidate details manually".

Auto-removal of intermediate files.

Many files are created during the process.
Some are in odt/base. And even files in odt/cert and pdf (directories) can be set to auto-remove after certain amount of time.

Placeholders in "Institute Details"

Have appropriate placeholders for Institute details to help to users know what should be written.

For example: In field Aided: What is generally written? should write that in placeholder.

Two files 404 error?

2017-10-02-010352_1366x768_scrot

Look at the bottom of the screenshot. Why 404 errors? It does not look like a serious issue, whatever it is, can you find out what files is it looking for? and do we need it those two files?

Make project single script deployable.

Improve the install.sh. So that it would be used to deploy and run this project on Ubuntu system through single script. An also deploy it on experimental in fully working condition.

Unable to generate certificate

[Sun Oct 01 20:16:04.546860 2017] [:error] [pid 31979] [client 117.247.42.16:10953] PHP Warning:  copy(odt/base/base59d14d04822c5.odt): failed to open stream: No such file or directory in /var/www/html/Certificate/library/odf.php on line 259, referer: http://developer.vigasdeep.com/Certificate/index.php?cert=design3
[Sun Oct 01 20:16:04.985870 2017] [:error] [pid 32474] [client 117.207.152.39:14073] PHP Warning:  copy(odt/base/base59d14d04ed9fb.odt): failed to open stream: No such file or directory in /var/www/html/Certificate/library/odf.php on line 259, referer: http://developer.vigasdeep.com/Certificate/index.php?cert=design3
[Sun Oct 01 20:16:24.823158 2017] [:error] [pid 31930] [client 117.207.152.39:14081] PHP Fatal error:  Uncaught OdfException: Nothing to parse - check that the content.xml file is correctly formed in /var/www/html/Certificate/library/odf.php:73\nStack trace:\n#0 /var/www/html/Certificate/manual.php(5): Odf->__construct('odt/base/base59...')\n#1 {main}\n  thrown in /var/www/html/Certificate/library/odf.php on line 73, referer: http://developer.vigasdeep.com/Certificate/option.php?var=manual
[Sun Oct 01 20:18:02.456727 2017] [:error] [pid 31930] [client 117.247.42.16:10987] PHP Fatal error:  Uncaught OdfException: Nothing to parse - check that the content.xml file is correctly formed in /var/www/html/Certificate/library/odf.php:73\nStack trace:\n#0 /var/www/html/Certificate/manual.php(5): Odf->__construct('odt/base/base59...')\n#1 {main}\n  thrown in /var/www/html/Certificate/library/odf.php on line 73, referer: http://developer.vigasdeep.com/Certificate/option.php?var=manual

Improve Documentation

Improve Documentation of this project.

  • Add Doc to explaining the work flow of this project.
  • Add comments explaining the codes.
  • Add Doc to tell the objective of this project and make TODO list.
  • Make list of BUGS and fixes needed in code.

Plus some other points that I missed.

Certificate in Second Page

Look at this generated PDF, the Certificate goes out to next page.
59ca0d6e57772.pdf

Questions ?

  1. Can we add some constraint, even if text goes down or is more in length/height, the certificate must not go to next page?

  2. What are other solutions for this?

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.