Fpdf2 supports basic Markdown-like styling: **bold**, __italics__, --underlined--. We only need add an optional markdown=True parameter to the cell method.
Let's organize the following lines to add some markdown to a sample cell.
Fpdf2 supports basic Markdown-like styling: **bold**, __italics__, --underlined--. We only need add an optional markdown=True parameter to the cell method.
Let's organize the following lines to add some markdown to a sample cell.
pdf = FPDF()pdf.add_page()pdf.cell(txt="**Hello** __word__ --python--", markdown=True)pdf.set_font("Times", size=60)from fpdf import FPDFpdf.output("sample.pdf")Create a free account to access the full topic