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
fix:remove duplicate code
Doge207787440ba43c01
diff --git a/magic_pdf/utils/office_to_pdf.py b/magic_pdf/utils/office_to_pdf.pyindex ada8f41e..f8cc445a 100644--- a/magic_pdf/utils/office_to_pdf.py+++ b/magic_pdf/utils/office_to_pdf.py@@ -86,11 +86,6 @@ def get_soffice_command():if os.path.exists(path):return path- # Last attempt with which- soffice_path = shutil.which('soffice')- if soffice_path:- return soffice_path-raise ConvertToPdfError("LibreOffice not found. Please install it:\n"" - Ubuntu/Debian: sudo apt-get install libreoffice\n"