reingart / pyfpdf_googlecode

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

add_page doesn't have a format parameter #26

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
According to the parameter portion of 
http://code.google.com/p/pyfpdf/wiki/AddPage add_page has a format parameter, 
but it doesn't.

Original issue reported on code.google.com by kitsu...@gmail.com on 13 Sep 2012 at 9:07

GoogleCodeExporter commented 9 years ago
It does!

https://code.google.com/p/pyfpdf/source/browse/fpdf/fpdf.py?name=1.7#242

Maybe you were using an outdated version.
Thanks for reporting this issue.

Original comment by reingart@gmail.com on 5 Feb 2014 at 5:08

GoogleCodeExporter commented 9 years ago
The code link you sent only has a orientation parameter, not a format one. It 
says:

    def add_page(self, orientation=''):

Original comment by kitsu...@gmail.com on 5 Feb 2014 at 5:22

GoogleCodeExporter commented 9 years ago
Yes, sorry, you're right, I just read the signature at the top of the page:

fpdf.add_page(orientation='')

Page format could be added as in TCPDF, it could be done refactoring __init__ , 
extracting set_page_format(format, orientation)

Original comment by reingart@gmail.com on 5 Feb 2014 at 5:36