-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Bug
...
Steps to reproduce
...
Docling version
...
Python version
...
when i convert a pdf document what page_range parameter:
conv_result = doc_converter.convert(input_doc_path, page_range=page_range)
it raised error as below:
the supposed correction would be:
from:
page_ix = element.prov[0].page_no - 1
page = conv_res.pages[page_ix]
assert page.size is not None
assert page.image is not None
to:
page_ix = element.prov[0].page_no - 1
page = next((item for item in conv_res.pages if item.page_no == page_ix), None)
assert page is not None
assert page.size is not None
assert page.image is not None
in standard_pdf_pipeline.py file.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
