I am searching for library or api for converting FROM Plain text, MS Word/Excel/Powerpoint (DOC, DOCX, XLS, XLSX), PDF, RTF, OpenDocument (ODT, ODS, ODP, ODG) TO PDF. I found some, but i want opinion if somebody has faced with that.

3 Answers 3


OpenOffice/LibreOffice has a headless processor that will convert between document types, including outputting as PDF.

You may also look at CutePDF - it is a PDF printer for Windows, but it uses GhostScript on the back end to do actual conversion of PS data to PDF.


You may be interested in Apache PdfBox. An alternative is iText.


Libre Office is the best choice I'm aware of because:

  1. it supports most if not all of the formats you've listed
  2. it has an API that you can use (command line or programmatic)
  3. it has SDKs for different languages so you can drive it from multiple programming languages.
  4. there are third-party applications that can leverage it for providing different / simpler API options (JODConverter - open source though no longer developed I think, Docmosis - commercial [please note I work for Docmosis])
  5. the conversions are very good (though not perfect)
  6. it is multi-platform, multi lingual.
  7. it is actively being developed by a broad community
  8. it is open source

The other option is to find multiple tools that have suitable APIs and combine them to get the conversions you need. It is plausible you could get better results, but the effort/build/maintenance will be much higher.

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.