Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
MinerU
Commits
87440ba4
"git@developer.sourcefind.cn:orangecat/ollama.git" did not exist on "41434a7cdcf33918ae2d37eb23d819ef7361e843"
Commit
87440ba4
authored
Apr 15, 2025
by
Doge2077
Browse files
fix:remove duplicate code
parent
039f8cbf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
5 deletions
+0
-5
magic_pdf/utils/office_to_pdf.py
magic_pdf/utils/office_to_pdf.py
+0
-5
No files found.
magic_pdf/utils/office_to_pdf.py
View file @
87440ba4
...
@@ -86,11 +86,6 @@ def get_soffice_command():
...
@@ -86,11 +86,6 @@ def get_soffice_command():
if
os
.
path
.
exists
(
path
):
if
os
.
path
.
exists
(
path
):
return
path
return
path
# Last attempt with which
soffice_path
=
shutil
.
which
(
'soffice'
)
if
soffice_path
:
return
soffice_path
raise
ConvertToPdfError
(
raise
ConvertToPdfError
(
"LibreOffice not found. Please install it:
\n
"
"LibreOffice not found. Please install it:
\n
"
" - Ubuntu/Debian: sudo apt-get install libreoffice
\n
"
" - Ubuntu/Debian: sudo apt-get install libreoffice
\n
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment