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

AttributeError: 'Page' object has no attribute 'figures' #36

Open
Jiangyangya opened this issue Nov 25, 2021 · 1 comment
Open

AttributeError: 'Page' object has no attribute 'figures' #36

Jiangyangya opened this issue Nov 25, 2021 · 1 comment

Comments

@Jiangyangya
Copy link

pdf_process.py报错,
traceback (most recent call last): | 0/42 [00:00<?, ?it/s]
File "pdf_process.py", line 200, in
worker(pdf_file, args.data_dir, args.output_dir)
File "pdf_process.py", line 109, in worker
for figure in this_page.figures:
AttributeError: 'Page' object has no attribute 'figures'
想请教一下这个是什么原因

@yusanshi
Copy link

yusanshi commented Dec 2, 2021

You can modify figures into images.

See https://github.com/jsvine/pdfplumber#the-pdfplumberpage-class

image

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

2 participants