pyfpdf icon indicating copy to clipboard operation
pyfpdf copied to clipboard

add_page

Open ChristianF88 opened this issue 8 years ago • 7 comments

I'm using the version 1.72 on Python. 2.7. My add _page method lets me only specify the orientation, the other 2 parameters described in your documentation do not work.

TypeError: "...got an unexpected keyword argument..."

Any Ideas or alternatives?

Thanks a lot!! :)

ChristianF88 avatar Oct 18 '16 21:10 ChristianF88

Just verified that this happens if using version 1.7.2 installed from pip which only accepts orientation keyword. If you use the github master branch 1.7.2 version all keywords are accepted by add_page: orientation, format, same.

eocasio avatar Oct 18 '16 22:10 eocasio

Alrighty,

Thanks a lot! :)

Sent from myMail for Android Wednesday, 19 October 2016, 00:06AM +02:00 from Edwood Ocasio [email protected] :

Just verified that this happens if using version 1.7.2 installed from pip which only accepts orientation keyword. If you use the github master branch 1.7.2 version all keywords are accepted by add_page: orientation, format, same. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub , or mute the thread .

ChristianF88 avatar Oct 18 '16 22:10 ChristianF88

It looks like this project hasn't been touched in a while - but is it possible to get a version bump on pip that fixes the keyword args?

blackmad avatar Sep 10 '19 20:09 blackmad

It would be nice if the docs at least mentioned this difference. The docs make it look like all the keywords are available.

dallasbrittany avatar Feb 25 '21 14:02 dallasbrittany

https://github.com/PyFPDF/fpdf2 that is a project which continues this one

On Thu, Feb 25, 2021 at 9:27 AM Dallas [email protected] wrote:

It would be nice if the docs at least mentioned this difference. The docs make it look like all the keywords are available.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/reingart/pyfpdf/issues/72#issuecomment-785933710, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACECGJBAKVVKIJWV7BQU34LTAZM4HANCNFSM4CTJHJZA .

alexanderankin avatar Feb 25 '21 19:02 alexanderankin

Just chiming in to mention that as of july 2021, 'format' is still not a valid keyword for add_page(). Installed from conda: fpdf 1.7.2 pyhd8ed1ab_0 conda-forge

Best, Alex

albodrug avatar Jul 20 '21 07:07 albodrug

PyFPDF is not maintained anymore, you may want to check PyFPDF/fpdf2 as a successor, with a 99%-compatible API

Lucas-C avatar Sep 01 '21 13:09 Lucas-C