Questions tagged [unoconv]

Universal Office Converter - Convert between any document format supported by LibreOffice/OpenOffice.

Universal Office Converter (unoconv) is a command line tool to convert any document format that LibreOffice can import to any document format that LibreOffice can export. It makes use of the LibreOffice’s UNO bindings for non-interactive conversion of documents.

57 questions
1
vote
0 answers

generated docx with opentbs converted by unoconv and libreoffice

For some reason I am expecting a strange behaviour. When I am merging my docx template with opentbs, it works all fine and it looks correct in the generated docx. But now I need to convert the docx into a pdf where I am using unoconv and libreoffice…
schurtertom
  • 520
  • 1
  • 9
  • 19
1
vote
1 answer

How to make unoconv auto calculate formulae before converting into pdf?

I created a .xlsx file using the python module Xlsxwriter. Works well but any cells that contain formula will show up as empty or 0 when I run unoconv -f pdf spreadsheet.xlsx How do I force the unoconv autocalculate the values before converting to…
Kim Stacks
  • 10,202
  • 35
  • 151
  • 282
0
votes
0 answers

how to convert document to pdf in chunks using unoconv

I have a small AWS EC2 instance with a 2GB memory. I'm trying to convert a pptx file to pdf using unoconv and libreoffice. The code work on my local machine but when I deploy it to AWS it converts only files less than 20MB and dies when the file is…
0
votes
0 answers

Issue with unoconv in PHP with a laragon server

I have an issue with running unoconv from my laragon PHP server. Info: It's a somewhat older project that uses unoconv to convert docx files to pdf files. Which has worked fine for a long time in my setup. I recently switched from the thread-safe…
Dylan Bos
  • 93
  • 7
0
votes
0 answers

Office probably died. Binary URP bridge disposed during call

Im trying to convert a PPT file to PDF using unoconv from a PHP script. Some of the PPT are failing to convert. Command: unoconv --export Quality=95 -f pdf '' unoconv version unoconv 0.7 Written by Dag Wieers Homepage at…
0
votes
0 answers

libreoffice no gui installation on CentOS

Currently using libreoffice to convert doc to docx, using it in conjunction with unoconv. subprocess.call(["unoconv", "-d", "document", "--format=docx", filename]) It works on testing environment where the CentOS server has GNOME, but the production…
Jace Yang
  • 31
  • 1
  • 5
0
votes
0 answers

Unoconv. ERROR: cannot import name 'Element' from 'base'

I have some troubles with run unoconv converting in docker. On local machine all is good. unoconv: Cannot find a suitable pyuno library and python binary combination in /usr/lib/libreoffice ERROR: No module named 'uno' unoconv: Cannot find a…
maskalev
  • 360
  • 3
  • 9
0
votes
0 answers

convert a docx file into pdf file using unoconv

convert a docx file into pdf file using unoconv. It's taking too long to convert as pdf and aborted DOCX to pdf conversion command: unoconv -f pdf -o sample.pdf sample.docx Download the sammple docx file
Rams
  • 53
  • 7
0
votes
1 answer

Unable to install unoconv on Amazon Sagemaker

I need to convert some miscellaneous files (pptx, xlsx, dox) to PDFs, and I need to do it on Linux. I found that "good way" to do this is using the unoconv package. The problem is that when I try to do sudo yum install unoconv it tells me…
0
votes
0 answers

'unoconv' is not recognized as an internal or external command, operable program or batch file

So I am trying to convert a docx file to a pdf but when I run the command unoconv -f pdf fileName.docx it returns the error 'unoconv' is not recognized as an internal or external command, operable program or batch file. I have installed LibreOffice…
Filtered
  • 65
  • 1
  • 8
0
votes
1 answer

How do I preserve the leading 0 of a number using Unoconv when converting from a .csv file to a .xls file?

I have a 3 column csv file. The 2nd column contains numbers with a leading zero. For example: 044934343 I need to convert a .csv file into a .xls and to do that I'm using the command line tool called 'unoconv'. It's converting as expected, however…
enormace
  • 641
  • 2
  • 6
  • 20
0
votes
1 answer

Convert documents into pdf using unoconv through Symphony Process Component

I'm trying to convert word documents into PDF using unoconv in PHP. When I run the following command in CLI it works properly without any error: export HOME=/tmp/converts && unoconv -f pdf -o ~/da063764384fb612971bfc92c52c40fc.pdf…
Hamid Ghorashi
  • 1,003
  • 3
  • 14
  • 29
0
votes
1 answer

`unoconv` not exporting all content of an excel sheet to pdf

I am using this command to convert .XLSX file to PDF. /usr/bin/unoconv -vvv -f pdf -o test.pdf 'somename.xlsx' So pdf is generating successfully, but when I checked the pdf content, It was missing contents from one sheet. I am not sure why it is…
Yograj Gupta
  • 9,811
  • 3
  • 29
  • 48
0
votes
1 answer

How to convert a PDF file with NodeJS + Unoconv

I need to convert a docx file to pdf but I don't know very well nodejs, however, I know that the following can be done: There is a project called unoconv-worker and in it, there is a part where the following line appears: var child = spawn…
0
votes
1 answer

error handling in unoconv

I have a script that automatically converts excel file from xls to csv using unoconv. From time to time I'm getting this error. line 174: 21023 Segmentation fault unoconv -f csv "$FILES" I want to be able to handle any error that occurs upon…
user2058738
  • 349
  • 1
  • 6
  • 15