{"id":2183,"date":"2013-08-29T11:03:39","date_gmt":"2013-08-29T09:03:39","guid":{"rendered":"http:\/\/www.tutego.de\/blog\/javainsel\/?p=2183"},"modified":"2013-08-29T11:04:46","modified_gmt":"2013-08-29T09:04:46","slug":"apache-odf-toolkit-in-release-0-6","status":"publish","type":"post","link":"https:\/\/www.tutego.de\/blog\/javainsel\/2013\/08\/apache-odf-toolkit-in-release-0-6\/","title":{"rendered":"Apache ODF Toolkit in Release 0.6"},"content":{"rendered":"<p>Aus dem Changelog <a href=\"https:\/\/www.apache.org\/dist\/incubator\/odftoolkit\/CHANGES-0.6-incubating.txt\">https:\/\/www.apache.org\/dist\/incubator\/odftoolkit\/CHANGES-0.6-incubating.txt<\/a>:<\/p>\n<blockquote>\n<p>* Added document encryption support<\/p>\n<p>* Added metadata support<\/p>\n<p>* Support for OpenDocument-v1.2<\/p>\n<p>* Additional APIs for Simple API<\/p>\n<\/blockquote>\n<p>Zum Projekt selbst sagt die <a href=\"https:\/\/incubator.apache.org\/odftoolkit\/index.html\">Homepage<\/a>:<\/p>\n<blockquote>\n<p>The Apache ODF Toolkit is a set of Java modules that allow programmatic creation, scanning and manipulation of <a href=\"http:\/\/opendocument.xml.org\/\">Open Document Format<\/a> (ISO\/IEC 26300 == ODF) documents. Unlike other approaches which rely on runtime manipulation of heavy-weight editors via an automation interface, the ODF Toolkit is lightweight and ideal for server use.<\/p>\n<\/blockquote>\n<p>Dokumente sind leicht erstellt, siehe <a href=\"https:\/\/incubator.apache.org\/odftoolkit\/simple\/gettingstartguide.html\">https:\/\/incubator.apache.org\/odftoolkit\/simple\/gettingstartguide.html<\/a>:<\/p>\n<pre>import java.net.URI;\n\nimport org.odftoolkit.simple.TextDocument;\nimport org.odftoolkit.simple.table.Cell;\nimport org.odftoolkit.simple.table.Table;\nimport org.odftoolkit.simple.text.list.List;\n\npublic class HelloWorld {\n    public static void main(String[] args) {\n        TextDocument outputOdt;\n        try {\n            outputOdt = TextDocument.newTextDocument();\n\n            \/\/ add image\n            outputOdt.newImage(new URI(&quot;odf-logo.png&quot;));\n\n            \/\/ add paragraph\n            outputOdt.addParagraph(&quot;Hello World, Hello Simple ODF!&quot;);\n\n            \/\/ add list\n            outputOdt.addParagraph(&quot;The following is a list.&quot;);\n            List list = outputOdt.addList();\n            String[] items = {&quot;item1&quot;, &quot;item2&quot;, &quot;item3&quot;};\n            list.addItems(items);\n\n            \/\/ add table\n            Table table = outputOdt.addTable(2, 2);\n            Cell cell = table.getCellByPosition(0, 0);\n            cell.setStringValue(&quot;Hello World!&quot;);\n\n            outputOdt.save(&quot;HelloWorld.odt&quot;);\n        } catch (Exception e) {\n            System.err.println(&quot;ERROR: unable to create output file.&quot;);\n        }\n    }\n}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Aus dem Changelog https:\/\/www.apache.org\/dist\/incubator\/odftoolkit\/CHANGES-0.6-incubating.txt: * Added document encryption support * Added metadata support * Support for OpenDocument-v1.2 * Additional APIs for Simple API Zum Projekt selbst sagt die Homepage: The Apache ODF Toolkit is a set of Java modules that allow programmatic creation, scanning and manipulation of Open Document Format (ISO\/IEC 26300 == ODF) documents. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","_links_to":"","_links_to_target":""},"categories":[4],"tags":[],"class_list":["post-2183","post","type-post","status-publish","format-standard","hentry","category-open-source"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/posts\/2183","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/comments?post=2183"}],"version-history":[{"count":3,"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/posts\/2183\/revisions"}],"predecessor-version":[{"id":2186,"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/posts\/2183\/revisions\/2186"}],"wp:attachment":[{"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/media?parent=2183"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/categories?post=2183"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/tags?post=2183"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}