Skip to content

agrawal-prateek/Academic-Credentials-Generator-IIIT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Degree Generator

This is an application to generate degree or marksheets for IIITM, Gwalior

Requirements

  • PHP 7.x
  • php-zip
  • gd or gd2
  • openssl
  • Python3

Install Dependencies

For Linux

Install PHP:

sudo apt-get install php

Alternatively PHP can be download from here

Install php-zip:

sudo apt-get install php-zip

Alternatively php-zip can be download from here

Install or enable some other libraries:

- gd or gd2
- php_openssl

Alternatively php-zip can be download from here

Steps to Generate Degrees

  • Create *.CSV files of SpreadSheet which contains data. You can see sample SpreadSheet which is named sample-excel.xlsx in root directory of the project.

  • Open the index.php and upload the *.CSV file contains data. You can upload more than one files of data

  • You will get the list of students in a table at the end of page.

  • Select desired entry or select all using main checkbox.

  • Click on generate button

  • PDF Of degrees are generated automatically and you will be redirected to homepage.

  • After generation, Click on download button to Download generated degrees.

Settings

  • On the homepage, there is a Settings Button. All degrees are dynamic, so the settings like paddings between lines, Chairman, Place, Date of Distribution etc can be changed.

  • Click on the settings button and a popup will appear. Change your settings accordingly. There is no need to save of submit form after changing settings because these are saved automatically to server at realtime.

Settings to add new program

  • Change in public/scripts/script.js(degree1,degree2,...) , In Following functions $.getJSON(), $.ajax()
  • Change in get_data.php (Add if-else conditions and in array named with $courses)
  • Add data in settings.json (degree1,degree2,...)
  • Change In upload.php (Add elseif condition)
  • Change In uploadform.php (In html <select> tag which has id="upload-degree", add new <option> for new degree)
  • Create more degrees files (degree_name.php) in the degrees folder
  • Change in generate_degree.php and do the following:
    • import new files (require() function in the starting of file)(see line no 1,2)
    • Add new degrees name in $data variable represented as array in file.
    • Load new files data (in variables $jsonString, $jsondata, $data['newdegreename'])
    • In foreach() loop, add new elseif conditions $found == 0
    • In foreach() loop, add new elseif conditions $degree == 'degreename'

Make Custom Fonts

If you want to make Custom fonts do the following:

  • Type following code in a Php file and run that
    <?php
        pathToProject = 'give_path_to_project'; //give project path
        pathToFontFile = 'give_path_to_font_file';  //give font file location
        require(pathToProject.'/public/fpdf/makefont/makefont.php');
        MakeFont(pathToFontFile);
    ?>
  • Run the above Php file on Browser
  • After running, Two files fontname.php and fontname.z will be created
  • Copy these two files in public/fpdf/font
  • You are now done

Wrote with ❤️ by Prateek Agrawal

About

Academic Credentials Generator for IIIT, Gwalior

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published