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
7b75d6b9
Commit
7b75d6b9
authored
Jan 05, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改热门词汇
parent
042b7b60
Pipeline
#2450
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
24 deletions
+0
-24
fill-manager/src/main/java/com/mortals/xhx/common/utils/WordUtil.java
.../src/main/java/com/mortals/xhx/common/utils/WordUtil.java
+0
-24
No files found.
fill-manager/src/main/java/com/mortals/xhx/common/utils/WordUtil.java
View file @
7b75d6b9
...
...
@@ -16,8 +16,6 @@ import freemarker.template.Template;
import
lombok.extern.apachecommons.CommonsLog
;
import
org.apache.pdfbox.pdmodel.PDDocument
;
import
org.apache.pdfbox.rendering.PDFRenderer
;
import
org.apache.xmlgraphics.image.loader.ImageInfo
;
import
sun.misc.BASE64Encoder
;
import
javax.imageio.ImageIO
;
import
javax.imageio.stream.ImageInputStream
;
...
...
@@ -76,28 +74,6 @@ public class WordUtil {
return
flag
;
}
/**
* 将图片转换成二进制字符串
*
* @param imgFilePath : 图片路径
* @return
*/
public
String
getImageStr
(
String
imgFilePath
)
{
InputStream
in
=
null
;
byte
[]
data
=
null
;
try
{
in
=
new
FileInputStream
(
imgFilePath
);
data
=
new
byte
[
in
.
available
()];
in
.
read
(
data
);
in
.
close
();
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
BASE64Encoder
encoder
=
new
BASE64Encoder
();
return
encoder
.
encode
(
data
);
}
public
static
String
convertWordToJPEG
(
String
inputFile
,
String
jpegPath
)
{
try
{
...
...
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