Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.
Python ai4sciencedocument-analysisdocxextract-datalayout-analysisocrparserpdfpdf-converterpdf-extractor-llmpdf-extractor-pretrainpdf-extractor-ragpdf-parserpptxpythonxlsx
feat: 添加解析pptx
Sidney233e92dfe5c6bd3
diff --git a/mineru/model/pptx/powerpoint_sample.pptx b/mineru/model/pptx/powerpoint_sample.pptxindex fbe9639c..da07693a 100644Binary files a/mineru/model/pptx/powerpoint_sample.pptx and b/mineru/model/pptx/powerpoint_sample.pptx differdiff --git a/mineru/model/pptx/pptx_converter.py b/mineru/model/pptx/pptx_converter.pyindex 95252990..6e3999e1 100644--- a/mineru/model/pptx/pptx_converter.py+++ b/mineru/model/pptx/pptx_converter.py@@ -39,9 +39,6 @@ class PptxConverter:self.pages.pop()def _walk_linear(self, pptx_obj: presentation.Presentation):- slide_width = pptx_obj.slide_width- slide_height = pptx_obj.slide_height-# 遍历每一张幻灯片for _, slide in enumerate(pptx_obj.slides):diff --git a/pyproject.toml b/pyproject.tomlindex 89e5d6fb..7b248167 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -42,7 +42,7 @@ dependencies = ["mineru-vl-utils>=0.1.19.1,<1","qwen-vl-utils>=0.0.14,<1","python-docx>=1.2.0,<2",- 'python-pptx>=1.0.2,<2',+ 'pypptx-with-oxml>=1.0.3,<2',"mammoth>=1.11.0,<2","pylatexenc>=2.10,<3","lxml>=4.0.0,<7.0.0",