You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am iterating over the pages of a document as follows:
`
for page_num, _ in enumerate(pages, start=1):
# Save each page as a separate Markdown file
page_md_filename = output_dir / f"{doc_filename}page{page_num}.md"
conv_res.document.save_as_markdown(page_md_filename, image_mode=ImageRefMode.REFERENCED, page_no=page_num)
# Read the Markdown content
with page_md_filename.open("r", encoding="utf-8") as md_file:
md_content = md_file.read()
artifacts_dir = f"{doc_filename}_page_{page_num}_artifacts"
image_files = list((output_dir / artifacts_dir).glob("*.png"))
table_counter = 0
`
from line: conv_res.document.save_as_markdown(page_md_filename, image_mode=ImageRefMode.REFERENCED, page_no=page_num) I would expect to generate a directory with the images in page_num, but I create a directory pero page with all the images from the document.
The text was updated successfully, but these errors were encountered:
I am iterating over the pages of a document as follows:
`
for page_num, _ in enumerate(pages, start=1):
# Save each page as a separate Markdown file
page_md_filename = output_dir / f"{doc_filename}page{page_num}.md"
conv_res.document.save_as_markdown(page_md_filename, image_mode=ImageRefMode.REFERENCED, page_no=page_num)
`
from line: conv_res.document.save_as_markdown(page_md_filename, image_mode=ImageRefMode.REFERENCED, page_no=page_num) I would expect to generate a directory with the images in page_num, but I create a directory pero page with all the images from the document.
The text was updated successfully, but these errors were encountered: