Skip to main content
0 votes
1 answer
50 views

I am generating a real estate liquidation report using fpdf2 in Python. I have a table where one column ("Details") contains long descriptions that wrap into multiple lines using multi_cell. ...
Sebastián's user avatar
0 votes
1 answer
104 views

I'm using version 2.8.4 of fpdf2 and version 1.7.2 of fpdf with python 3.13.6 on Windows 11. When I run the following code: from fpdf import FPDF TABLE_DATA = ( ("First name", "...
andalou's user avatar
  • 13
-1 votes
1 answer
125 views

I cannot for the life of me figure out why this PDF won't display. I'm using fpdf2 to create a PDF that looks good when saving it from the Python script. However, something must be going wrong when ...
Joe's user avatar
  • 21
0 votes
1 answer
57 views

I'm facing an issue with empty PDF attachments sent with boto3 SESv2 client using Templated Email type. I think this is something related to encoding or specific boto3 send_email rules that I'm not ...
ubqm's user avatar
  • 125
1 vote
2 answers
90 views

How can I sort the axis in descending order? I tried the following and it did not work: from io import BytesIO from fpdf import FPDF import pandas as pd import matplotlib.pyplot as plt import io DATA ...
smpa01's user avatar
  • 4,401
-3 votes
1 answer
5k views

I need to create a pdf with header, footer and background color. Tge following code is generating all 3, but it seems the footer is getting behind the pdf rect from fpdf import FPDF class PDF(FPDF): ...
smpa01's user avatar
  • 4,401
1 vote
0 answers
84 views

Basically if my table of contents exceeds one-page then it the contents of the 2nd page overlaps with the document header. I tried adding self.set_y(15) at the end of the header function. However ...
Kruti Deepan Panda's user avatar
0 votes
1 answer
238 views

Traceback (most recent call last): File "Ish.py", line 1, in <module> File "PyInstaller\loader\pyimod02_importers.py", line 378, in exec_module File "...
Eesh Gharat's user avatar
-1 votes
1 answer
151 views

I am able to generate a pdf with fpdf2 but I want it to show up with the PDF/A compliance tag in Adobe Acrobat Reader. Basically i want the below text to appear when the PDF is opened. Do I need to ...
Kruti Deepan Panda's user avatar
0 votes
1 answer
92 views

How to set max width of a write_html()? I have a string with html tags and i need print the text formatted inside of a rectangle background. But the texts leak to the edge of the page. How can i ...
Alex Felipe's user avatar
-1 votes
1 answer
301 views

I can't set X axis position for display pdf.table, only Y axis works using set_y(). When i use set_x() nothing happens or set_xy() only Y axis parameter works. Theres a way to position a table in any ...
Alex Felipe's user avatar
0 votes
1 answer
271 views

If I'm using a FlexTemplate and feed multiline text into it. It displays the lines like it does a newline between each line break. I tried the same text content with a normal multi_cell() and it is ...
Neo Yion's user avatar
0 votes
0 answers
249 views

I have a python google cloud function that should create a pdf when triggered, but the code seems to breakdown, seemingly because of the font, see below. I tested the workflow with my local ...
Jason Vuka's user avatar
0 votes
1 answer
212 views

When I convert text documents to pdfs in Python using the FPDF2 library it breaks apart urls that span multiple lines by adding a space or a newline (I'm not sure which one). I use the following code ...
MaxJay's user avatar
  • 3
1 vote
1 answer
538 views

I have a problem to load the SVG (created by QBill) to the FPDF2 library. The shapes are adopted without any problems, but the text is missing everywhere from the SVG. Here is the code: import fpdf ...
Kico's user avatar
  • 23

15 30 50 per page