Questions tagged [fpdf2]

4 questions
1
vote
1 answer

warning : meta NOT subset; don't know how to subset; dropped

I am working on python program which get some data from SQL database and arrange it in a pdf file in Arabic language, so I use these libraries; # -*- coding: utf-8 -*- from fpdf import FPDF, XPos, YPos from arabic_reshaper import reshape from…
1
vote
3 answers

FPDF2 Python TypeError

Error Python FPDF. Drawing a table with pdf.table( borders_layout="NO_HORIZONTAL_LINES", cell_fill_color=(224, 235, 255), cell_fill_logic=lambda i, j: i % 2, col_widths=(42, 39, 35, 42), headings_style=headings_style, …
0
votes
1 answer

why is fpdf2 throwing a "Content cannot be added on a finalized document, after calling output()" exception when the pdf is constructed in a function

I want to create a set of pdfs for different subjects, all with the same basic structure. After constructing a working chunk of code, I moved that into a function. As soon as the function is called I get "FPDF Exception: Content cannot be added on a…
Paul
  • 123
  • 1
  • 7
0
votes
1 answer

FPDF object has no attribute 'epw'

I want to create a table using the 'FPDF' library, but python gives me an error 'CreateTablePDF' object has no attribute 'epw' There is my code: import pathlib from os.path import join from fpdf import FPDF class CreateTablePDF(FPDF): def…