1

I'm developing a system where users will be uploading documents. It will only support MS Office files 2003 and earlier so it currently barfs if the user uploads any of the x files (docx, xlsx, pptx).

I've found PHPWord in another SO question, but this does the exact opposite of what I need and also is still in what looks to be early beta.

Worst case scenario, are there any good libraries for conversion from these same MSO-X formats to PDFs?

Community
  • 1
  • 1
Dan
  • 3,246
  • 1
  • 32
  • 52
  • Checkout OpenOffice.org / LibreOffice.org for your conversion needs. – hakre Jan 11 '13 at 00:15
  • Unless there is come CL interface for converting with OO, I don't see how that would help. Am I missing something? I would also prefer to not need to run `exec()` if possible, meaning a pure PHP solution. – Dan Jan 11 '13 at 00:23
  • Re OO, Google JODConverter – JasonPlutext Jan 11 '13 at 00:25
  • @Dan: If there would not be a headless binding of the conversion, I would not have recommended it for your PHP needs. But I only can leave some pointers, you need to throw some keywords into google your own as well if you want to learn more. – hakre Jan 11 '13 at 00:25
  • @JasonPlutext, *THAT* is very helpful! Thanks! If you want to expand that out into an answer, I'll gladly accept it. Its not pure PHP, but I think the chances of a reasonable solution including that is unlikely. – Dan Jan 11 '13 at 03:13

0 Answers0