-
Notifications
You must be signed in to change notification settings - Fork 17
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
module 'pypdfium2' has no attribute 'FPDF_LoadDocument' #217
Comments
Not broken. Deliberate change. Read the docs. |
Quoting changelog for v4:
Also worth a read: |
Your example could be rewritten like this import pypdfium2.raw as pdfium_c
doc = pdfium_c.FPDF_LoadDocument((THE_FILEPATH+"\x00").encode("utf-8"), None) However, I encourage using our helper class (Edit: added null terminator, to be safe) |
Oh, actually the Readme was highly unclear about this, I forgot to update. I'll push a commit shortly. |
I'm using version 4.8.0.
How to reproduce:
import pypdfium2 as pdfium
doc = pdfium.FPDF_LoadDocument(THE_FILEPATH, None)
--> AttributeError: module 'pypdfium2' has no attribute 'FPDF_LoadDocument'
Observation: this works with version 3.21.1 but seems to be broken starting with version 4.0.0
The text was updated successfully, but these errors were encountered: