2

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!

1

1 Answer 1

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.

1
  • ... 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, 2019 at 21:37

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.