This commit is contained in:
2025-11-07 04:03:57 +11:00
parent 40ff3756a5
commit e05c15db16
6 changed files with 557 additions and 406 deletions

View File

@@ -29,7 +29,11 @@ def main():
with open(pdf_path, "rb") as pdf_file:
pdf_content = pdf_file.read()
md, images = convert_pdf_to_markdown(pdf_content)
md = refine_content(md, images, pdf_content)
try:
md = refine_content(md, images, pdf_content)
except BaseException:
continue
save_md_images(current_output_dir, md, images)