Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
ofbiz-directcontrolservlet
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
de5a7e1c
authored
2014-10-26 19:47:14 -0500
by
Ean Schuessler
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'BF-3913' of /home/git/repositories/brainfood/ofbiz-directcontrolservlet
2 parents
55e32ab2
7fdd9705
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
src/com/brainfood/ofbiz/LibreOfficeRenderer.java
src/com/brainfood/ofbiz/LibreOfficeRenderer.java
View file @
de5a7e1
...
...
@@ -43,7 +43,11 @@ public class LibreOfficeRenderer {
UtilIO
.
writeString
(
outputFile
,
output
);
List
<
String
>
args
=
Arrays
.
asList
(
new
String
[]{
"libreoffice"
,
"--headless"
,
"--convert-to"
,
"pdf"
,
outputFile
.
getPath
(),
"--outdir"
,
"/tmp"
});
Process
process
=
new
ProcessBuilder
(
args
).
start
();
ProcessBuilder
pb
=
new
ProcessBuilder
(
args
);
Map
env
=
pb
.
environment
();
env
.
put
(
"HOME"
,
"/home/ofbiz"
);
env
.
put
(
"USERNAME"
,
"ofbiz"
);
Process
process
=
pb
.
start
();
InputStream
is
=
process
.
getInputStream
();
process
.
waitFor
();
...
...
Please
register
or
sign in
to post a comment