Questions tagged [soffice]
38 questions
1
vote
1 answer
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("argument should be integer type")
I use unittest…

frank
- 21
- 4
1
vote
1 answer
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 file or any better way to convert pdf to docx so…

Faizan E Mustafa Mustafa
- 31
- 1
- 6
1
vote
0 answers
How to bulk update doc page size to make the page size consistent?
I have a bunch of word document (.doc) files and all have different paper size format like "letter" or "A4" or "A3".
I want to convert all those docs formats to the "A4" size without opening those files.
Is there any way to convert those files in a…

Nikunj Beladiya
- 159
- 1
- 8
1
vote
0 answers
Using system() to Run LibreOffice / soffice on OSX
I'm running MATLAB 2013a on OSX and am attempting to convert a .xlsx file to a .pdf using MATLAB script. After determining that this couldn't be achieved using MATLAB alone, I downloaded LibreOffice to help me out. Running the following code in Mac…

dwm8
- 309
- 3
- 16
1
vote
1 answer
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 PDF from libreoffice writer menu button and fonts…

moti irom
- 51
- 7
1
vote
1 answer
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 information just fine, it cannot monitor open…

Waffles
- 339
- 2
- 5
- 7
0
votes
1 answer
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 can convert to pdf but the columns too many so they have been showed on four pages.
I need they show…

abby_520
- 11
- 2
0
votes
1 answer
Convert .doc/.docx to .pdf from URL, on-the-fly, with Python, on Linux
I need to capture .doc or .docx files from external sites, convert them to pdf and return the content. To this I add a content-type header, publish through my CMS, cache by CDN, and display within HTML using the Adobe PDF Embed API. I'm using Python…

Ken
- 212
- 3
- 13
0
votes
1 answer
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
This will give me pdf file but there are ; in the…
user14606211
0
votes
1 answer
Trying to run a function in the Bash shell gives unexpected results
I have been trying to batch convert a bunch of really old MS office files to odf formats for archival purposes, using libreoffice from the command line. For this purpose I first gather all the files in a single directory and then invoke the…
0
votes
1 answer
Converting to pdf using soffice adds blank page
I'm trying to convert an .ods-file to pdf using soffice & python:
import os
import subprocess
def ods_to_pdf(ods_filename):
file = os.path.join(os.getcwd(), ods_filename)
path_to_soffice = "path/to/soffice"
…

pyQueen
- 191
- 2
- 10
0
votes
1 answer
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 flask
app =…

Tan Eugene
- 93
- 6
0
votes
1 answer
Understanding a Linux Command Syntax that Fixed LibreOffice
Greetings and pardon the lengthy title,
To preface: I solved an issue where after downloading LibreOffice, the splash screen would show up, but nothing would happen afterwards
Below is the solution that fixed my issue:
Step 1. SAL_DISABLE_OPENCL=1…

kierkegaard
- 3
- 2
0
votes
0 answers
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
0
votes
1 answer
libreoffice6.3 error "Failed to open display" & soffice command not found. in cenos7
i'm using centos7, i have installed libreoffice6.3. it was working file before changing of my computer ip. but after changing ip it is not working. and then i have reinstalled many time. but still it's not working.
command & and outputs…