Browse Source

Update mineru/utils/pdf_image_tools.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Xiaomeng Zhao 4 weeks ago
parent
commit
6250c453d9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      mineru/utils/pdf_image_tools.py

+ 1 - 1
mineru/utils/pdf_image_tools.py

@@ -149,7 +149,7 @@ def load_images_from_pdf_core(
     pdf_page_num = len(pdf_doc)
     end_page_id = get_end_page_id(end_page_id, pdf_page_num)
 
-    for index in range(start_page_id, end_page_id+1):
+    for index in range(start_page_id, end_page_id + 1):
         # logger.debug(f"Converting page {index}/{pdf_page_num} to image")
         page = pdf_doc[index]
         image_dict = pdf_page_to_image(page, dpi=dpi, image_type=image_type)