15

I am unable to find any open source libraries to render ODF documents using C++. I found ODKit suporting Java and AODL for .NET C#.

Does any one have any idea or provide me any pointers.

CharlesB
  • 86,532
  • 28
  • 194
  • 218
cpp11dev
  • 417
  • 6
  • 13
  • Hi, Perhaps, I am unable to find now any ODF rendering library supporting the latest ODF specification in any language say Java, Perl, Py, etc. Question: How do I write an application to render my .odt files ? – cpp11dev Jan 18 '10 at 06:14
  • 2
    You want to render it -- in what sense? Display? Obtain a bitmap image of the document? – MK. Jul 16 '11 at 17:27

5 Answers5

3

KOffice supports ODF and is written in C++. I suspect they may have solved whatever it is you are trying to solve. http://www.koffice.org

Ryann Graham
  • 8,079
  • 2
  • 29
  • 32
  • Hey Ryan. Well, KDE (or KOffice) is a huge desktop development framework for *nix platform. However, I am unable to find any modules related to ODF rendering en all. – cpp11dev Jan 19 '10 at 07:30
  • 1
    KOffice runs on Windows and Mac as well. Anything to do with rendering may be deep inside, as it's a core functionality: http://www.koffice.org/developer/apidocs/ – Ryann Graham Jan 19 '10 at 14:01
  • 1
    True. In other words, lot of re-factoring/#defines has to be practiced on KOffice code to extract rendering functionality alone. Well, I believed open source meant open design...however, design is through source which makes it tough to re-factor or build a render engine in days. Thanks by the way for he answers. What about any lightweight ODF viewers in LGPL , I may use. Any ideas. – cpp11dev Jan 20 '10 at 04:30
2

It may not be the most elegant solution but OpenOffice itself is capable of rendering and the OOoSDK can be used from C++ as seen here for writer and here for spreadsheet.

renick
  • 3,873
  • 2
  • 31
  • 40
0

There is none. You're better AODL or any of the other libs available (python, perl, java, etc) and doing a binding to it

AlfaTeK
  • 7,487
  • 14
  • 49
  • 90
  • Thanks for the answer. However, these all are not RENDER libraries. They allow you to manipulate, create or modify ODF documents but do not have any extensions for rendering the ODF document in GUI windows/frames. I checked all examples of AODL http://odftoolkit.org/AODL-Examples – cpp11dev Jan 19 '10 at 03:34
0

KOffice can be an idea, but if I just want to display an odt file in a nice Qt QWidget, but I don't want to depends on DBus and a lots of Kde feature.

The Idea is to take a look a Flake and KoText libs as Thomas Zanders says on this Forum.

dzen
  • 6,923
  • 5
  • 28
  • 31