Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fill-system
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
廖旭伟
fill-system
Commits
8bb201c2
Commit
8bb201c2
authored
Dec 25, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改图片转换
parent
a2c89b7c
Pipeline
#2875
failed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
fill-manager/src/main/java/com/mortals/xhx/common/utils/WordUtil.java
.../src/main/java/com/mortals/xhx/common/utils/WordUtil.java
+2
-4
No files found.
fill-manager/src/main/java/com/mortals/xhx/common/utils/WordUtil.java
View file @
8bb201c2
...
@@ -253,9 +253,7 @@ public class WordUtil {
...
@@ -253,9 +253,7 @@ public class WordUtil {
public
static
BufferedImage
moreToOne
(
List
<
BufferedImage
>
imgs
)
{
public
static
BufferedImage
moreToOne
(
List
<
BufferedImage
>
imgs
)
{
//传入图片少于1张直接返回
//传入图片少于1张直接返回
int
len
=
imgs
.
size
();
int
len
=
imgs
.
size
();
if
(
len
<
1
)
{
return
null
;
}
//使用一个数组将图片装起来
//使用一个数组将图片装起来
BufferedImage
[]
bufferedImages
=
new
BufferedImage
[
len
];
BufferedImage
[]
bufferedImages
=
new
BufferedImage
[
len
];
int
[][]
imageArrays
=
new
int
[
len
][];
int
[][]
imageArrays
=
new
int
[
len
][];
...
@@ -311,7 +309,7 @@ public class WordUtil {
...
@@ -311,7 +309,7 @@ public class WordUtil {
}
}
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
String
docPath
=
"E:\\pic\\doc\\
new
.docx"
;
String
docPath
=
"E:\\pic\\doc\\
3
.docx"
;
String
jpgPath
=
"E:\\pic\\doc\\3.jpg"
;
String
jpgPath
=
"E:\\pic\\doc\\3.jpg"
;
...
...
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