Skip to content

hansheng0512/fpdf-python

Repository files navigation

pdf-python

Create a pdf using Python. Explanation in this Medium article.

Table of contents

General info

This project create a receipt in PDF using 'PyFPDF' Library and Python. PyFPDF is a library for PDF document generation under Python, ported from PHP 'FPDF', a well-known PDFlib-extension replacement.

To include font in languages other than English, we use the extended version 'tFPDF' library that adds UTF-8 support. To use a new font, add the font.ttf file in './font/unifont/' and call the font using add_font in main.py. Please take note that not all font is compatible and able to be used with 'tFPDF'.

You can find the documentation of PyFPDF and tFPDF here:

Steps

Git clone this project

$ git clone https://github.com/Techyhans/pdf-python.git

To Enable FPDF With Multiple Languages:

  1. Install PHP

Install FPDF

$ pip install fpdf

Run and create PDF

$ python sample.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published