1

I need an open-source C/C++ library that would help me convert RTF document to PDF.

I have searched and the only two available solutions I have found so far are:

  1. Librtf is a C-style library with no documentation at all official page
  2. UnRTF is a command-line programm that converts RTF file to HTML with lots of bugs as well official page

Any ideas / thoughts / suggestions greatly appreciated!

0

You could use LibreOffice in headless mode, for example:

soffice --headless --convert-to pdf file_name.rtf

Or use it as service, in conjunction with unoconv.

|improve this answer|||||
  • ... but can LO be used as a library, rather than as a binary? (I mean, other than writing a library which forks libreoffice) – einpoklum Apr 28 '19 at 21:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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