Skip to content

Latest commit

 

History

History
31 lines (16 loc) · 656 Bytes

README.md

File metadata and controls

31 lines (16 loc) · 656 Bytes

Simple PDF Creation with Python (fpdf2)

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.

Features

  • Create a PDF with a centered title
  • Add multiline body text
  • Minimal code example, easy to understand for beginners

Installation

Make sure you have Python 3.8+, and fpdf2 installed.

Installing fpdf2 :

pip install fpdf2

Usage

Run the provided script to generate a simple PDF file (your_file_name.pdf)

Contributing

Contributions and suggestions are welcome! Feel free to open an issue or submit a pull request.