Just open the document with libre office and choose Export as PDF.: enter image description here. For a command line solution there is. The API for converting OpenOffice ODT documents to PDF files. Simple, fast, and secure REST API integration to most popular programming languages like C#, Java, Ruby, Python, PHP, JavaScript, Node.js, Go, and other frameworks with perfect conversion quality.
I understand that whatever format you successfully used last, to export a document as a Pdf, will be the default. So export something as a Pdf/A and then try again from the command line.I have tried the unoconv option: unoconv -f pdf -eFormsType=1 -eSelectedPdfVersion=1 Some.odtand whilst it purports to work, the result give errors when tested as a Pdf/A file.Whereas, the same file run through the: soffice -headless -convert-to pdf Some.odtcommand does pass the test but only if the previous export was successfully made to a Pdf/A file.Testing was performed using pdfa from.
Hello, I'm trying to convert a Microsoft Word document to text using the convert-to command-line parameter using LibreOffice 3.4.5, OOO340m1 (Build:1505), on OpenSuse 12.1. I tried these two commands.
Soffice -convert-to txt filename.docNothing happened. Soffice -headless -convert-to txt filename.docProduced a PDF file.Why do I need -headless? If this is mandatory, the documentation should state this. Can LibreOffice convert Word Perfect documents?The format for 'convert-to' parameter is: -convert-to outputfileextension:outputfiltername -outdir outputdirWhat are the valid outputfileextension values? What are the valid outputfiltername values?For the documentation, the soffice -help showed the -convert-toparameter.
The help-LibreOffice Help does not show this parameter.Thank you. Here are a few more pointers for anybody else struggling with this.This is the general format of convert-to (noting that on windows the parameter is -convert-to not -convert-to): soffice -headless -convert-to: filetoconvert.xxxUse the link above to look for the filter names in the.xcu files.For example, I wanted to convert to Excel 95 format so I found the MSExcel95.xcu filter and inside it has a name.I could then try it out: soffice -headless -convert-to xls:'MS Excel 95' filename.xlsx(I needed this to get a non-xml version of an excel file). I'm using LibreOffice Version: 4.3.7.2, running on Ubuntu 14.10. Using the above and other questions and answers I've gotten the following command to work.
The headless option is discussed above. The env parameter allows the command to run even if libreoffice is already running.soffice -env:UserInstallation=file:///tmp/tempprofile -headless -convert-to csv FileNameI do have an additional problem.
The spreadsheets I'm converting to csv have a libreoffice basic function. When I use the GUI to convert to csv, the values as displayed go into the csv file.
When I use the command line, all I get is #VALUE!Is there a way to get the correct, calculated value, into the csv file?Thanks for any answers!!