40 questions
0
votes
0
answers
49
views
cmake from WSL with LibreOffice
There is something weird happening in the interaction between libreoffice, cmake and wsl.
I have a bunch of ODT files in a directory and I'm trying to use cmake to generate a makefile which will ...
1
vote
2
answers
2k
views
How to convert xlsx to pdf on one page
I have a 13 column xlsx and I want convert to pdf.
I use this code: "soffice" ,"--headless","--convert-to", "pdf" , filepath ,"--outdir",outpath.
I ...
0
votes
1
answer
1k
views
CLI- soffice convert csv to pdf with semicolon as delimiter
I want to convert the csv file to pdf file from command line using soffice command. But my csv file is colon separated instead of comma.
If I use command:
soffice --convert-to pdf ./sampleCSVFile.csv
...
2
votes
1
answer
2k
views
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 ...
1
vote
0
answers
562
views
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:
...
1
vote
1
answer
727
views
python unittest combine assertions with context manager
To test a function, where I raise an exception when the first argument is not of integer type:
def magicWithInteger(integerA):
if not isinstance(integerA, int):
raise TypeError("...
0
votes
1
answer
413
views
Python Flask Subprocess Libreoffice hangs when hosted in IIS
When I run my app from cmd, I'm able to call the api very quickly. But when it is hosted in IIS (fastcgi - wfastcgi.py) the run takes forever and I"m unable to get any return from the api.
import ...
0
votes
0
answers
327
views
LibreOffice Error after installed in centos 7
/opt/libreoffice6.3/program/oosplash: error while loading shared libraries: libuno_sal.so.3: cannot open shared object file: No such file or directory
i'm using centos7
1
vote
1
answer
247
views
Can't read .docx file which i got after converting pdf using soffice command
I am trying to convert pdf to docx using soffice. It converts it into .docx but it gives textboxes which I am unable to read using the docx api provided by python. Is there any better way to read the ...
0
votes
1
answer
501
views
How can i convert a .xlsx (with an image on header) to PDF on Unix?
I have a .xlsx file with an image on header. When i try to convert to PDF via terminal using libreoffice it converts but the image doesn't appear on the generated PDF.
Here is a screenshot of the ...
4
votes
1
answer
11k
views
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 ...
0
votes
0
answers
402
views
Soffice convert-to pdf with comments
I use the command
soffice --headless --convert-to pdf:writer_pdf_Export myfile
to convert an .odt document to a pdf file, directly in a php file.
In my document I have inserted comments, and after ...
0
votes
2
answers
234
views
Python subprocess behaves different when called from Django vs unit test
My first time posting - please go easy on me. I could not come up with a succinct title that summarizes this issue. I seem to have a codec problem.
My django-based website calls a subprocess (...
0
votes
1
answer
811
views
Parameter "--outdir" is not recognised via pythons subprocess.call but does work in terminal [duplicate]
I would like to write a python script to automate the conversion of libreoffice ott templates to normal odt files.
if I go to the terminal (bash shell) and I type:
soffice --headless --convert-to odt ...
6
votes
3
answers
15k
views
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 /...
0
votes
1
answer
3k
views
soffice socket is not opening via commandline
I wana use the pyoo.py package to control libreOffice via Python.
There are good tutorials available. First step is to open a socket with following command.
soffice --nologo --norestore --nodefault ...
1
vote
1
answer
1k
views
how export to pdf with embeded fonts in centos soffice command line?
If I save DOCX file with embeded fonts option in MS Word, i can open it in libreoffice writer gui in linux, and see it with the original fonts that are not installed on Linux.
i can also export it to ...
0
votes
0
answers
376
views
soffice command don't work libreoffice4
When i had libreoffice3 it worked well , but when i unistall this version with this commande
sudo apt-get remove libreoffice-core
sudo apt-get remove --purge libreoffice-cor
And i download ...
2
votes
0
answers
737
views
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...
1
vote
1
answer
339
views
How can I take the performance information from OpenOffice in C#?
I'm trying to monitor the performance information for openoffice using the performance counter class in C#. I'm encountering a wierd issue where although my program can monitor other applications ...