pyfpdf
pyfpdf copied to clipboard
add_page
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!! :)
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
.
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 .
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?
It would be nice if the docs at least mentioned this difference. The docs make it look like all the keywords are available.
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 .
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
PyFPDF is not maintained anymore, you may want to check PyFPDF/fpdf2 as a successor, with a 99%-compatible API