notebook-as-pdf icon indicating copy to clipboard operation
notebook-as-pdf copied to clipboard

PdfFileWriter is deprecated and was removed in PyPDF2 3.0.0. Use PdfWriter instead.

Open odeckmyn opened this issue 2 years ago • 4 comments

PyPDF2 is now forcing use of PdfWriter class instead of PdfFileWriter so the library is broken.

Would you please update the code ?

In the meantime, I'm trying to force PyPDF2==2.12.1 in my requirements.

odeckmyn avatar Jan 17 '23 09:01 odeckmyn

It sounds like you've looked into this issue so if you have the time you could also submit a Pull Request making the changes needed. That would be fantastic and help me out because I've not kept up with PyPDF2 development.

betatim avatar Jan 18 '23 09:01 betatim

PyPDF2 is now forcing use of PdfWriter class instead of PdfFileWriter so the library is broken.

Would you please update the code ?

In the meantime, I'm trying to force PyPDF2==2.12.1 in my requirements.

Added pull request with fixes

AleksandrTulenkov avatar Jan 25 '23 08:01 AleksandrTulenkov

I see that #41 has been merged. Could we get a new release as well?

Illviljan avatar Mar 15 '23 07:03 Illviljan

+1 for a new release. Can't install and use notebook-as-pdf without this fix or the workaround mentioned.

jjdmol avatar May 22 '23 11:05 jjdmol