Skip to content

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

@xcg340122

Description

@xcg340122

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions