Ask Your Question
0

generate an odt file from another program [closed]

asked 2013-10-10 19:34:33 +0200

Kev2 gravatar image

Hi, I'm learning programming and I would like to know how to generate text and styles to make an odt file. Something simple like: Heading 1 Some text Heading 2 More text.

Thanks a lot!

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by Alex Kemp
close date 2015-11-11 06:01:12.372283

2 Answers

Sort by » oldest newest most voted
0

answered 2013-10-10 20:01:51 +0200

L-user gravatar image

This is not going to be an easy task...
1. Type in some text and mark as Heading 1 style.
2. Save the file in ODT.
3. Rename extension of file from odt to zip in operating system file manager.
4. Unzip the file.
5. Look into content.xml file.

edit flag offensive delete link more
0

answered 2013-10-11 18:16:48 +0200

Arif at www.arifsaha.com gravatar image

Do you have to create the document with manually create XML, or by scripting OpenOffice.org / LibreOffice, or something in the middle? There are some libraries that can be used to generate Open Document Format. For example these 2 are for Perl:

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2013-10-10 19:34:33 +0200

Seen: 470 times

Last updated: Oct 11 '13