| Crates.io | recred |
| lib.rs | recred |
| version | 0.1.0 |
| created_at | 2025-10-10 15:50:45.662293+00 |
| updated_at | 2025-10-10 15:50:45.662293+00 |
| description | A Rust CLI tool for generating certificates in bulk from PDF templates using CSV data and customizable field positions, colors, and font sizes. |
| homepage | https://github.com/aether-flux/recred |
| repository | https://github.com/aether-flux/recred |
| max_upload_size | |
| id | 1877121 |
| size | 52,220 |
Recred is a CLI tool written in Rust for generating certificates in bulk from PDF templates. It reads participant data from a CSV file and automatically places the fields like name, achievement, etc at configurable positions on your certificate template. Text color, font size, and output filenames can be customized per field or globally.
This project is a remake of AutoCred a similar Python tool. AutoCred became unusable due to a critical dependency crash. Recred brings the same functionality to Rust, with even more features like a json file for configuring the certificate generation.
x, y) for precise placement.{name}.pdf.If you have cargo installed on your system, simply run:
cargo install recred
Otherwise, follow the next steps depending on your OS.
curl -fsSL https://raw.githubusercontent.com/aether-flux/recred/main/scripts/linux/install.sh | bash
curl -L https://raw.githubusercontent.com/aether-flux/recred/main/scripts/windows/install.bat -o install.bat && install.bat
Recred uses a JSON config file to define:
config.json:{
"template": "template.pdf",
"font_size": 30,
"text_color": [0, 0, 0],
"output_name": "{name}.pdf",
"fields": {
"name": { "x": 220.0, "y": 350.0, "color": [34, 139, 34] },
"achievement": { "x": 220.0, "y": 300.0, "size": 20 }
}
}
output_name: pattern for PDF filenames. {name} will be replaced with the CSV field "name".fields: define x and y coordinates and optional color and size of field-specific text.Note: There is no restriction on the name of the JSON config file, as it needs to be specified manually when running the CLI. Details on the CLI usage are provided below.
recred --config config.json --data data.csv
--config or -c: path to your JSON config file.--data or -d: path to your CSV file with participant data.
Generated PDFs will be saved in the output/ directory.Recred is licensed under MIT.
Made with 🦀 in Rust.