Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
odeckmyn opened this issue Jan 17, 2023 · 4 comments

Comments

@odeckmyn
Copy link

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.

@betatim
Copy link
Owner

betatim commented Jan 18, 2023

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.

@AleksandrTulenkov
Copy link
Contributor

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

@Illviljan
Copy link

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

@jjdmol
Copy link

jjdmol commented May 22, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants