This application is useful for creating certificates, diplomas, or any other type of document that requires a large number of documents with the same format but different data.
Facilitates automatic creation of Word documents (.docx) or PDF from a predefined template. The template should contain placeholder markers, such as [name]
, [id]
, which will be replaced with specific values.
-
Document Template:
- Create a Word document with placeholder markers that match the column names in your Excel file. For example:
[name]
,[id]
.
- Create a Word document with placeholder markers that match the column names in your Excel file. For example:
-
Excel File:
- Prepare an Excel file with data. Ensure that the columns have the same names as the markers in the template.
-
Open .exe file:
-
Fields:
- Fill in the fields with the path of the doc template and the Excel file.
- File name is optional, it will be the prefix of the documents.
- Select the column: Select the column that will be used to name the documents.
- File name and select the column will be concatenated to name the documents.
- You can generate PDF files by checking the -PDF?- box too.
-
Done:
Make sure you have the necessary libraries installed:
pip install pandas python-docx
python main.py
pip install cx_Freeze
python setup.py build
This script was created by me, [@Isai_hernandez]