This repository contains a minimal Python script demonstrating how to create a PDF file with a title and body text using the popular fpdf2 library.
- Create a PDF with a centered title
- Add multiline body text
- Minimal code example, easy to understand for beginners
Make sure you have Python 3.8+, and fpdf2 installed.
Installing fpdf2 :
pip install fpdf2Run the provided script to generate a simple PDF file (your_file_name.pdf)
Contributions and suggestions are welcome! Feel free to open an issue or submit a pull request.