Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Fix(paddleocr): load all PDF pages for image cropping instead of first 100 (#13811)

黄圣祺406339af1ffb
diff --git a/deepdoc/parser/paddleocr_parser.py b/deepdoc/parser/paddleocr_parser.py
index 56ecdfb607..c2ee805d45 100644
--- a/deepdoc/parser/paddleocr_parser.py
+++ b/deepdoc/parser/paddleocr_parser.py
@@ -422,7 +422,7 @@ class PaddleOCRParser(RAGFlowPdfParser):
"""Convert API response to table tuples."""
return []
- def __images__(self, fnm, page_from=0, page_to=100, callback=None):
+ def __images__(self, fnm, page_from=0, page_to=10**9, callback=None):
"""Generate page images from PDF for cropping."""
self.page_from = page_from
self.page_to = page_to