scott1028 / pyfpdf

Automatically exported from code.google.com/p/pyfpdf
GNU Lesser General Public License v3.0
0 stars 0 forks source link

[WriteHTML] Bad alignment of the first row of each new page. #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Using the html/table example class: 

from pyfpdf import FPDF, HTMLMixin

class MyFPDF(FPDF, HTMLMixin):
    pass

pdf=MyFPDF()
#First page
pdf.add_page()
html = open('attached_html.html', 'r') # see attachments
pdf.write_html(html)
pdf.output('html.pdf','F')

What is the expected output? What do you see instead?

A centered table in all pages, but on each new page the first row is aligned to 
the left instead of to the center.

What version of the product are you using? On what operating system?

Latest trunk.

Original issue reported on code.google.com by guillo.g...@gmail.com on 20 Sep 2010 at 8:49

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by reingart@gmail.com on 24 Sep 2010 at 12:34

GoogleCodeExporter commented 9 years ago
Can you test latest changes (rev feca8875d5).
It should be fixed now.

Original comment by reingart@gmail.com on 27 Sep 2010 at 12:05

GoogleCodeExporter commented 9 years ago
Works like a charm, thanks a lot for the quick fix!

Original comment by guillo.g...@gmail.com on 27 Sep 2010 at 2:41