A bulk pdf generator. This application can generate PDFs in bulk by using just one click.

Overview

logo

forks-badge stars-badge watcher-badge repo_size-badge CodeFactor

A bulk html pdf generator. This application can generate PDFs in bulk by using just one click.

Screenshots

demo1 demo2

Requirements 🧱

Your system must have the following tools installed and setup with system path variables updated before you can use this software.

  • Python3
  • pip package manager
  • GTK3 Runtime (for Windows, MacOS and few linux based systems). You can get GTK form here 👉 For Windows, For MacOS, For Linux

    Note: Your system might already have gtk3 installed. You need not install gtk dev dependencies.

Getting started 🚀

To run the application from the source code you need to meet few basic requirements. Once that is done we are ready to do the setup.

To prepare the environment you need to follow these steps:

  • Execute the prep.sh script which will make virtual environment. Here is an example for debian based system:

    $ chmod +x prep.sh
    $ ./prep.sh
  • Now we can activate the environment. Here is an example:

    • For Unix or MacOS based system:

      $ source env/bin/activate
    • For Windows based system:

      $ env\Scripts\activate.bat

      Note: Your pwd must be the src directory or else you need to provide full path of the activate script.

    • To deactivate use the following command:

      $ deactivate
  • Now we are ready to install the required packages. Run the following command to install all the required packages:

    $ pip install -r requirements.txt
  • Once we are done with installing packages. We are ready to execute the application using python. Here is an example:

    $ python app.py

Note: To run this software successfully you need to make sure you have GTK3 installed.

How to use? 💡

When the application is launched it has a single window with a few but important options. The application uses special syntax to generate customized content. Lets have a brief walk through it:

The application uses HTML and CSS to render document designs. We have provided some pre-build templates but feel free to load your custom design.

Template variable syntax 🔥

To make the document generation versatile and make customization possible we added a variable syntax in system for the templates which will be used to render real value from the data file.

  • A variable is surrounded by %.

    Example: %label%

  • A label is the column name of the data file. It is the first row of the .csv file.
Number Alpha Beta Gamma 👈 These are the labels
1 100 40 0.5
2 90 80 0.7
3 150 20 0.1

Note: Labels are case sensitive.

Here is an example

template.html

Certificate of Completion

This is to certify that

%Name%

has completed the course

%Course%

with score of %Score%



">
<style>
  @page {
    size: 890px 690px;
    margin: auto;
  }
style>
<div
  style="width:800px; height:600px; padding:20px; text-align:center; border: 10px solid #787878"
>
  <div
    style="width:750px; height:550px; padding:20px; text-align:center; border: 5px solid #787878"
  >
    <span style="font-size:50px; font-weight:bold"
      >Certificate of Completionspan
    >
    <br /><br />
    <span style="font-size:25px"><i>This is to certify thati>span>
    <br /><br />
    <span style="font-size:30px"><b>%Name%b>span ><br /><br /> <span style="font-size:25px"><i>has completed the coursei>span> <br /><br /> <span style="font-size:30px">%Course%span> <br /><br /> <span style="font-size:20px">with score of <b>%Score%b>span> <br /><br /><br /><br /> div> div>
data.csv
Name Course Score 👈 These are the labels
Aman Nirala Quantum Information 95

PDF output

Steps to use 🧐

  1. Select your HTML template file in the application (this file is important).
  2. Select style(css) file for additional design customization (optional).
  3. Then choose your data file(.csv).

    Note: The data file needs to be a .csv i.e. comma(,) separated file. The first row is considered as "label" information and not data instance. This is important as this "label" will be used in the template file as variables.

  4. Next you need to define an output file name format. This is optional, you can leave is empty and it will auto-generate file name based on the data.

    Note: You have to follow variable syntax format for defining file name. Here is an example: %label-1%_MIT_%label-2%.pdf.

  5. Now you need to select the output directory in which all the documents will be saved.
  6. Finally it's time to do a final check and tweaks before staring the document generation process.(Don't forget to save the changes made to the template or style files in the application before starting to process.)
  7. Once everything is done, press the Generate button and wait for the program to finish the process.

License

FOSSA Status

Contributors

All Contributors

Thanks goes to these wonderful people (emoji key):


Aman Nirala

💻 📖 🤔 🎨

This project follows the all-contributors specification. Contributions of any kind welcome!


github_follow_badge twitter-badge

If you like our work, a bit of contribution would motivate us a lot for more open source contributions.

Owner
Aman Nirala
Computer Science and Physics student. Quantum Computing and Mechanics Researcher. Reclusive like a neutrino. A photon to the higgs field of giving up.
Aman Nirala
PyMuPDF is a Python binding with support for MuPDF

PyMuPDF is a Python binding with support for MuPDF (current version 1.18.*), a lightweight PDF, XPS, and E-book viewer, renderer, and toolkit, which is maintained and developed by Artifex Software, I

PyMuPDF 1.9k Jan 03, 2023
pdf_sprinkles: sprinkles text in your PDFs

pdf_sprinkles: sprinkles text in your PDFs pdf_sprinkles remotely OCRs a PDF with Google Cloud Document AI, and returns the result as a PDF with searc

Will Angley 2 Dec 17, 2021
this is simple program, that converts pdf file to png

author: a5892731 last update:2021-11-01 version: 1.1 resources: -https://pypi.org/project/pdf2image/ -https://github.com/oschwartz10612/poppler-window

1 Nov 01, 2021
minipdf is a package for creating simple, single-page PDF documents.

minipdf minipdf is a package for creating simple, single-page PDF documents. Installation You can install the development version from GitHub with: #

mikefc 41 Dec 19, 2022
JoplinPdf2Images - Converts a PDF to images in Joplin and adds it to the specified note as a printout

joplinPdf2Images Converts a PDF to images in Joplin and adds it to the specified

Morten Haahr Kristensen 2 Apr 20, 2022
Excalibur: A web interface to extract tabular data from PDFs

Excalibur: A web interface to extract tabular data from PDFs Excalibur is a web interface to extract tabular data from PDFs, written in Python 3! It i

1.2k Jan 04, 2023
pystitcher stitches your PDF files together, generating nice customizable bookmarks for you using a declarative markdown file as input

pystitcher pystitcher stitches your PDF files together, generating nice customizable bookmarks for you using a declarative input in the form of a mark

Nemo 387 Dec 10, 2022
pikepdf is a Python library for reading and writing PDF files.

A Python library for reading and writing PDF, powered by qpdf

1.6k Jan 03, 2023
Camelot is a Python library that can help you extract tables from PDFs!

A Python library to extract tabular data from PDFs

1.8k Jan 03, 2023
PDFSanitizer - Renders possibly unsafe PDF files and outputs harmless PDF files

PDFSanitizer Renders possibly malicious PDF files and outputs harmless PDF files

9 Jan 30, 2022
Python bindings for MuPDF's rendering library.

PyMuPDF 1.19.3 Release date: December 15, 2021 On PyPI since August 2016: Author Jorj X. McKie, based on original code by Ruikai Liu. Introduction PyM

Jorj X. McKie 0 Nov 03, 2022
Telegram bot that can do a lot of things related to PDF files.

Telegram PDF Bot A Telegram bot that can: Compress, crop, decrypt, encrypt, merge, preview, rename, rotate, scale and split PDF files Compare text dif

130 Dec 26, 2022
An application which enables the users to perform simple yet intriguing PDF operations

AstutePDF A repository containing the GUI for an application which enables the users to perform simple yet intriguing PDF operations. These include, M

Raghav S 5 Jan 22, 2022
Extract the table in the PDF,outputs the data similar to the json format

extract the table in the PDF,outputs the data similar to the json format

3 Nov 25, 2021
A bulk pdf generator. This application can generate PDFs in bulk by using just one click.

A bulk html pdf generator. This application can generate PDFs in bulk by using just one click. Screenshots Requirements 🧱 Your system must have the f

Aman Nirala 3 Apr 23, 2022
OCRmyPDF adds an OCR text layer to scanned PDF files, allowing them to be searched

OCRmyPDF adds an OCR text layer to scanned PDF files, allowing them to be searched or copy-pasted. ocrmypdf

8k Jan 08, 2023
Svg2pdfgen - Svg To PDF gen with python

Svg2pdfgen - Svg To PDF gen with python

Robert Urbańczyk 3 May 30, 2022
Mipdfcompressor - 💕A simple pdf size compressing telegram robot

Pdf Compressor Telegram Bot A simple pdf size compressing telegram robot. Useful for digital documentation. Mandatory Variables API_HASH - Your A

Madhavan Mi 1 Feb 14, 2022
Convert Lecture Videos to PDF

Convert Lecture Videos to PDF Description Want to go through lecture videos faster without missing any information? Wish you can read the lecture vide

Emilio Kartono 20 Nov 25, 2022
Produce pdf in python backend from simple bootstrap vue frontend and download to browser

vollmacht produce pdf in python backend from simple bootstrap vue frontend and download to browser Frontend in one file with bootstrap-vue (allthough

Otto 1 Nov 08, 2020