mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-06-29 15:31:05 +08:00
Fix VLM PDF parser only parse first 12 pages, and default page range for PDF files align with backend (#16394)
1. Fix VLM parser only parse first 12 pages 2. Fix frontend default pages 1 - 100000, keep aligned with backend.
This commit is contained in:
@@ -2053,7 +2053,7 @@ class VisionParser(RAGFlowPdfParser):
|
||||
all_docs = []
|
||||
|
||||
for idx, img_binary in enumerate(self.page_images or []):
|
||||
pdf_page_num = idx # 0-based
|
||||
pdf_page_num = from_page + idx # 0-based
|
||||
if pdf_page_num < start_page or pdf_page_num >= end_page:
|
||||
continue
|
||||
|
||||
|
||||
Reference in New Issue
Block a user