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

一直提示没有getImageList这个方法 #51

Open
xcg340122 opened this issue Sep 19, 2022 · 0 comments
Open

一直提示没有getImageList这个方法 #51

xcg340122 opened this issue Sep 19, 2022 · 0 comments

Comments

@xcg340122
Copy link

C:\Users\zzzzz\Downloads\EasyTrans-master\EasyTrans\trans\output_file\translated_file.pdf
Traceback (most recent call last):
File "trans_file.py", line 54, in
img_list = cur_page.getImageList() # 获取当前页面的图片对象
AttributeError: 'Page' object has no attribute 'getImageList'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "trans_file.py", line 218, in
new_pdf.save(new_file_name, garbage=4, deflate=True, clean=True) # 保存翻译后的pdf
File "C:\Users\zzzzz\AppData\Roaming\Python\Python38\site-packages\fitz\fitz.py", line 4456, in save
raise ValueError("cannot save with zero pages")
ValueError: cannot save with zero pages

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

1 participant