Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
slm-fileview
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
梁杰芳
slm-fileview
Commits
fb6adf31
Commit
fb6adf31
authored
Jul 06, 2021
by
陈精华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化:Windows环境下没有配置office.home,查找Office组件,内置的优先
parent
0854317c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
OfficeUtils.java
...ava/org/artofsolving/jodconverter/office/OfficeUtils.java
+4
-4
No files found.
office-plugin/src/main/java/org/artofsolving/jodconverter/office/OfficeUtils.java
View file @
fb6adf31
...
...
@@ -87,10 +87,10 @@ public class OfficeUtils {
programFiles
=
System
.
getenv
(
"ProgramFiles"
);
}
return
findOfficeHome
(
programFiles
+
File
.
separator
+
"LibreO
ffice"
,
programFiles
+
File
.
separator
+
"OpenOffice 4
"
,
programFiles
+
File
.
separator
+
"Libre
Office 4"
,
officePluginPath
+
File
.
separator
+
"windows-office
"
officePluginPath
+
File
.
separator
+
"windows-o
ffice"
,
programFiles
+
File
.
separator
+
"LibreOffice
"
,
programFiles
+
File
.
separator
+
"Open
Office 4"
,
programFiles
+
File
.
separator
+
"LibreOffice 4
"
);
}
else
if
(
PlatformUtils
.
isMac
())
{
return
findOfficeHome
(
...
...
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