DocBank icon indicating copy to clipboard operation
DocBank copied to clipboard

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

Open Jiangyangya opened this issue 4 years ago • 1 comments

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' 想请教一下这个是什么原因

Jiangyangya avatar Nov 25 '21 02:11 Jiangyangya

You can modify figures into images.

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

image

yusanshi avatar Dec 02 '21 06:12 yusanshi