Take the 2-minute tour ×
Software Recommendations Stack Exchange is a question and answer site for people seeking specific software recommendations. It's 100% free, no registration required.

I want to automatically convert Excel files (.xls, .xlsx) to OpenDocument spreadsheets (.ods)

Is there a PHP library for that?

Or at least a command-line utility that I could call from PHP?

share|improve this question
    
.odf is for mathematical equations; probably you meant .ods? –  Snowball May 26 at 4:59
    
@Snowball: Yes thanks! Fixed. –  Nicolas Raoul May 26 at 5:00
    
I was going to suggest PHPExcel since I've used that for reading a few spreadsheet types but I just checked and it can't write to OpenDocument only read. –  Nick Wilde May 26 at 6:37
add comment

1 Answer 1

up vote 3 down vote accepted

unoconv does this.

<?php
exec('unoconv -f ods -o output.ods input.xlsx');
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.