3

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?

2
  • .odf is for mathematical equations; probably you meant .ods?
    – Snowball
    May 26, 2014 at 4:59
  • 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. May 26, 2014 at 6:37

1 Answer 1

3

unoconv does this.

<?php
exec('unoconv -f ods -o output.ods input.xlsx');

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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