We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
import base64 from easyofd.ofd import OFD # 安装包
出现No module named 'easyofd.ofd',pip list结果: easyofd 0.0.8
The text was updated successfully, but these errors were encountered:
是否可以尝试更新一下版本目前版本是 0.3.1
Sorry, something went wrong.
更新之后,在python3.9环境下出现错误
import base64 from easyofd.ofd import OFD def pdf2ofd(pdf_pth,out_pth): with open(pdf_pth,"rb") as f: pdfb64 = f.read() ofd = OFD() ofd_bytes = ofd.pdf2ofd(pdfb64,optional_text=False) ofd.del_data() with open(out_pth,"wb") as f: f.write(ofd_bytes) def ofd2pdf(ofd_pth,out_pth): with open(ofd_pth,"rb") as f: ofdb64 = str(base64.b64encode(f.read()),"utf-8") ofd = OFD() ofd.read(ofdb64) pdf_bytes = ofd.to_pdf() with open(out_pth,"wb") as f: f.write(pdf_bytes) out_file = "test.ofd" pdf_file = "test.pdf" pdf2ofd(pdf_pth=pdf_file,out_pth=out_file)
TypeError Traceback (most recent call last) Cell In[1], line 2 1 import base64 ----> 2 from easyofd.ofd import OFD 4 def pdf2ofd(pdf_pth,out_pth): 5 with open(pdf_pth,"rb") as f: ...... TypeError: unsupported operand type(s) for |: 'type' and 'NoneType' `
更新下python 版本?
No branches or pull requests
出现No module named 'easyofd.ofd',pip list结果:
easyofd 0.0.8
The text was updated successfully, but these errors were encountered: