Page 1 of 1

C++ open an odt file and save it in RTF

PostPosted: Sun Sep 04, 2016 9:53 pm
by phil-ok
Hello,
I just red this old post.
I hope you inbetween got the answer.
I have a C++ codeblock projet and I want to open an odt file and save it in RTF.
Could you please tell me what (and how) to install ?
Could you please also give me an example of how to open an odf file ?
Thanks in advance
Philippe

Split from topic with very different subject, floris v, moderator

Re: C++ open an odt file and save it in RTF

PostPosted: Mon Sep 05, 2016 6:34 am
by Zizi64
Could you please tell me what (and how) to install ?


You need install the AOO or the LO (the whole office suite).
Of course you need install the C++ IDE (compiler, etc...)

You can use the API functions for the loading, saving and for the conversion. See the API descriptions ans Andrew Pitonyak's books.


I suppose, you need use the loadComponentFromURL() API function for open an .odf file, and the storeComponentToURL() or storeComponentAsURL() API function with a well adjusted export filter for the saving the converted file.