Questions tagged [soffice]
38 questions
11
votes
2 answers
How to convert PDF to DOCX on linux
I try to convert pdf file to word, excel and powerpoint.
I already tried a lot of command like these:
soffice -env:UserInstallation=file:///$HOME/.libreoffice-headless/ --convert-to docx:"Microsoft Word 2007/2010/2013 XML" file.pdf
/usr/bin/soffice…

Splinteer
- 1,126
- 4
- 13
- 28
6
votes
1 answer
soffice command not execute in php shell_exec()
I have run this command in shell_exe() function as shown below:
shell_exec('/usr/bin/soffice --headless --convert-to html:HTML --outdir /home/admin/Desktop/ /home/admin/Desktop/text.docx');
But it gives me error like this in apache error…

Jigar Pancholi
- 1,209
- 1
- 8
- 25
6
votes
3 answers
Using soffice within python, Command works in terminal but not in Python subprocess
I am having the most frustrating problem with libreoffice in Python
when I run the following in terminal I have no problem at all, the pdf file is produced where I want it and life is dandy:
cd…

brucey31
- 61
- 1
- 1
- 2
3
votes
0 answers
How to show progress when converting documents using libreoffice
When I convert documents using libreoffice on server. It takes a long time to process. I need to know progress to response to front end. But I don't find any info about progress of this conversion. I also try as below when converting doc to…

Sinh Ho
- 430
- 3
- 11
3
votes
1 answer
Converting xls to semicolon delimited csv with soffice commandline
I'm trying to convert xls files in a directory to csv format using soffice.
soffice --headless --convert-to csv *
It is giving comma separated version(obviously). Now I want to get semi-colon delimited csv.
I thought of replacing commas with…

srand9
- 337
- 1
- 6
- 20
3
votes
0 answers
convert file (in memory) to pdf via python uno interface
I am working on a project where I need to convert various document formats into pdf. After doing some search, open office (libreoffice) looks like a good option. I don't want to do system call such as soffice --headless --convert-to pdf filenam for…

totoro
- 3,257
- 5
- 39
- 61
2
votes
0 answers
LibreOffice headless how to set margins when converting html to pdf
I'm using soffice to convert email messages (html) to PDF. Is it possible to somehow specify page margins (via css or pdf export options)?

kemsky
- 14,727
- 3
- 32
- 51
2
votes
1 answer
convert doc to docx using soffice not working
i am trying to convert a doc to docx using the following command:
soffice --headless --convert-to docx test.doc
I am using centos7, and install everything from openoffice throught
yum install openoffice
I am in the current directory of the .doc…

Luiza Rodrigues
- 185
- 1
- 2
- 15
2
votes
2 answers
headless soffice fails silently
I can't get headless soffice to tell me why conversion does not work and I cannot seem to figure out what flags I could pass to get some error output.
Version 1:
/usr/bin/soffice --headless --convert-to pdf test.key --outdir .
Version with all my…

haberdasher
- 619
- 6
- 17
2
votes
4 answers
Problem with starting OpenOffice service (soffice) from Java (command working in commandline, but not from Java)
I want to exceute a simple command which works from the shell but doesn't work from Java.
This is the command I want to execute, which works fine:
soffice -headless "-accept=socket,host=localhost,port=8100;urp;"
This is the code I am excecuting…

Shervin Asgari
- 23,901
- 30
- 103
- 143
2
votes
0 answers
soffice convert html to pdf not working
My code
soffice --headless -convert-to pdf:impress_pdf_Export 1.html
when I run this code command line it is not generating pdf file from the html
Please help...

Goutam Pal
- 1,763
- 1
- 10
- 14
2
votes
1 answer
unoconv: UnoException during import phase: The document '(path to document)' could not be opened
I am having a very strange error. I am running open office on my CentOS server and i'm trying to convert user-uploaded documents to html. Generally, the process works fine for smaller documents. however, once the document size reaches anything…

Fred Garbutt
- 187
- 2
- 15
1
vote
1 answer
How do I run a libreoffice macro from the command line without GUI?
Introduction
I have a docker container with a GUI in which I registered my macro through LibreOffice Calc. Using the GUI given by the docker container, I can successfully run the macro via the command line. When I load the image in a Kubernetes Pod,…

GoldenRoses
- 31
- 7
1
vote
1 answer
Trying to run LibreOffice (soffice) as a systemctl service fails
I'm trying to get LibreOffice (more specifically, soffice) to run as a service on an Ubuntu server (20.04.3), but I've just not been able to make it work. It's the first time I'm trying to set up a custom service, so the likelihood that it's just…

sakinobashi
- 197
- 2
- 11
1
vote
0 answers
Node app on Heroku and libreoffce buildpack . Error converting file: Error: Could not find soffice binary
I am using libreoffice convert to get a pdf from a doc file.
locally with libreoffice software installed, everything is working perfectly.
On heroku, after deploying and using buildpacks specifically:
heroku-buildpack-libreoffice-for-heroku-18
I am…

DavedAndreh
- 19
- 2