fpdf fpdf2 migration documentation #1616
-
|
I see you are maintaining a documentation to help the migration from fpdf : #411 (comment) I'm trying to migrate a code base to fpdf2 but the spacing seems different. Where could I find the documentation that specify the main difference from fpdf ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
|
You will find the documentation you are looking for there: https://py-pdf.github.io/fpdf2/History.html#compatibility-between-pyfpdf-fpdf2 If ever you find that this documentation is missing some important differences, please tell us so that we update it 🙂 |
Beta Was this translation helpful? Give feedback.
-
|
Here is how to reproduce my issue. from fpdf import FPDF, HTMLMixin, FPDF_VERSION
class FPDF_Compat(FPDF, HTMLMixin):
pass
pdf1 = FPDF_Compat(orientation = 'P', unit = 'mm', format='A4')
pdf1.add_page()
pdf1.write_html(FPDF_VERSION)
pdf1.write_html('<table border=1><tr><th width="100%">Test 1</th></tr></table>')
pdf1.write_html('<table border=1><tr><th width="100%">Test 2</th></tr></table>')
pdf1.output('output.pdf')I agree that the fpdf2 version is the better choice but I need to find a solution too migrate simply |
Beta Was this translation helpful? Give feedback.


Hi @juleslagarde
You will find the documentation you are looking for there: https://py-pdf.github.io/fpdf2/History.html#compatibility-between-pyfpdf-fpdf2
If ever you find that this documentation is missing some important differences, please tell us so that we update it 🙂