incubator-odf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r1015635 - in /websites/staging/odftoolkit/trunk/content: ./ odftoolkit/simple/gettingstartguide.html odftoolkit/simple/helloworld.zip
Date Tue, 18 Jul 2017 09:25:05 GMT
Author: buildbot
Date: Tue Jul 18 09:25:05 2017
New Revision: 1015635

Log:
Staging update by buildbot for odftoolkit

Modified:
    websites/staging/odftoolkit/trunk/content/   (props changed)
    websites/staging/odftoolkit/trunk/content/odftoolkit/simple/gettingstartguide.html
    websites/staging/odftoolkit/trunk/content/odftoolkit/simple/helloworld.zip

Propchange: websites/staging/odftoolkit/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Tue Jul 18 09:25:05 2017
@@ -1 +1 @@
-1799353
+1802258

Modified: websites/staging/odftoolkit/trunk/content/odftoolkit/simple/gettingstartguide.html
==============================================================================
--- websites/staging/odftoolkit/trunk/content/odftoolkit/simple/gettingstartguide.html (original)
+++ websites/staging/odftoolkit/trunk/content/odftoolkit/simple/gettingstartguide.html Tue
Jul 18 09:25:05 2017
@@ -121,17 +121,13 @@ h2:hover > .headerlink, h3:hover > .head
 <p>This start guide shows how to use the Simple ODF API to create a text document with
image, paragraph, list and table in OpenDocument format (ODF). In about 40 lines of code,
you will be able to produce an OpenDocument Format text document named HelloWorld.odt that
looks like this:</p>
 <p><img alt="demo file" src="helloworld.png" /></p>
 <p><strong>Prerequisites</strong></p>
-<p>Simple ODF is written in Java, so you will need to have Java 1.5 or above installed
on your system. Make sure you download the SDK (software development kit), not just the runtime
version of Java.</p>
-<p>In this tutorial, you can build and run the application from the command line or
IDE, such as Eclipse. Anyway, you need to download the following three jars, store them in
the "lib" directory and add them into the classpatch.</p>
-<ol>
-<li><a href="http://odftoolkit-extra.apache-extras.org.codespot.com/files/simple-odf-0.6.6.jar">Simple
ODF 0.6.6</a>.</li>
-<li><a href="http://odftoolkit-extra.apache-extras.org.codespot.com/files/odfdom-0.8.7.jar">ODFDOM
0.8.7</a>.</li>
-<li>The Apache Xerces 2.9.1 or higher version (download from <a href="http://xerces.apache.org/mirrors.cgi">Apache
-    Xerces</a> web site).</li>
-</ol>
-<p>In addition, you need to download <a href="helloworld.zip">the resource file</a>
of this demo.</p>
+<p>Simple ODF is written in Java, so you will need to have Java 1.6 or above installed
on your system. Make sure you download the SDK (software development kit), not just the runtime
version of Java.</p>
+<p>In this tutorial, you can build and run the application from the command line or
IDE, such as Eclipse or Netbeans.
+Anyway, all required jars, are stored within the "lib" directory of the demo bundle and needed
to be added to the classpath.
+A JAR with all dependencies had been included as download within <a href="helloworld.zip">the
resource file</a> of this demo.</p>
+<p>NOTE: The latest version of this all-inclusive-JAR can be received after building
the Simple ODF project. This will be JAR within the 'target' directory embracing all required
JARs.</p>
 <p><strong>Code</strong></p>
-<p>We write all of the code needed to create the document in the HelloWorld class.
For simplicity, the code is wrapped in main method directly, package declaration is omitted
and hard code is also included in this program. </p>
+<p>We write all of the code needed to create the document in the HelloWorld class.
For simplicity, the code is wrapped in main method directly, package declaration is omitted
and hard code is also included in this program.</p>
 <div class="codehilite"><pre><span class="n">import</span> <span
class="n">java</span><span class="p">.</span><span class="n">net</span><span
class="p">.</span><span class="n">URI</span><span class="p">;</span>
 
 <span class="n">import</span> <span class="n">org</span><span
class="p">.</span><span class="n">odftoolkit</span><span class="p">.</span><span
class="n">simple</span><span class="p">.</span><span class="n">TextDocument</span><span
class="p">;</span>
@@ -171,7 +167,7 @@ h2:hover > .headerlink, h3:hover > .head
 </pre></div>
 
 
-<p>The TextDocument class has these convenient methods: </p>
+<p>The TextDocument class has these convenient methods:</p>
 <div class="codehilite"><pre>    <span class="o">//</span> <span
class="n">Creates</span> <span class="n">a</span> <span class="n">new</span>
<span class="n">text</span> <span class="n">document</span> <span
class="n">that</span> <span class="n">contains</span> <span class="n">an</span>
<span class="n">empty</span> <span class="n">paragraph</span><span
class="p">.</span>
     <span class="n">TextDocument</span><span class="p">.</span><span
class="n">newTextDocument</span><span class="p">();</span>
     <span class="o">//</span> <span class="n">Puts</span> <span
class="n">the</span> <span class="n">image</span> <span class="n">at</span>
<span class="n">the</span> <span class="n">given</span> <span class="n">location</span>
<span class="n">at</span> <span class="n">the</span> <span class="k">end</span>
<span class="n">of</span> <span class="n">the</span> <span class="n">document</span><span
class="p">.</span>
@@ -182,15 +178,15 @@ h2:hover > .headerlink, h3:hover > .head
     <span class="n">TextDocument</span><span class="p">.</span><span
class="n">addList</span><span class="p">()</span>
     <span class="o">//</span> <span class="n">Creates</span> <span
class="n">a</span> <span class="n">new</span> <span class="n">table</span>
<span class="n">with</span> <span class="n">columnCount</span> <span
class="n">columns</span> <span class="n">and</span> <span class="n">rowCount</span>
<span class="n">rows</span><span class="p">.</span> <span class="n">You</span>
<span class="n">can</span> <span class="n">get</span> <span class="n">the</span>
<span class="n">cell</span> <span class="n">at</span> <span class="n">given</span>
<span class="n">position</span> <span class="n">and</span> <span
class="n">set</span> <span class="n">its</span> <span class="n">content</span><span
class="p">.</span>
     <span class="n">TextDocument</span><span class="p">.</span><span
class="n">addTable</span><span class="p">(</span><span class="n">int</span>
<span class="n">columnCount</span><span class="p">,</span> <span
class="n">int</span> <span class="n">rowCount</span><span class="p">);</span>
-    <span class="o">//</span> <span class="n">Saves</span> <span
class="n">the</span> <span class="n">document</span> <span class="n">at</span>
<span class="n">the</span> <span class="n">given</span> <span class="n">path</span><span
class="p">.</span> 
+    <span class="o">//</span> <span class="n">Saves</span> <span
class="n">the</span> <span class="n">document</span> <span class="n">at</span>
<span class="n">the</span> <span class="n">given</span> <span class="n">path</span><span
class="p">.</span>
     <span class="n">TextDocument</span><span class="p">.</span><span
class="n">save</span><span class="p">(</span><span class="n">String</span>
<span class="n">path</span><span class="p">)</span>
 </pre></div>
 
 
 <p><strong>Building and Running</strong></p>
-<p>If you use Eclipse, you can just run this class as a Java Application. If you use
command line, please complie code and run it with the following commands:</p>
-<div class="codehilite"><pre><span class="n">javac</span> <span
class="o">-</span><span class="n">cp</span> <span class="n">lib</span><span
class="o">/</span><span class="n">odfdom</span><span class="o">-</span><span
class="n">java</span><span class="o">-</span>0<span class="p">.</span>8<span
class="p">.</span>7<span class="p">.</span><span class="n">jar</span><span
class="p">:</span><span class="n">lib</span><span class="o">/</span><span
class="n">simple</span><span class="o">-</span><span class="n">odf</span><span
class="o">-</span>0<span class="p">.</span>6<span class="p">.</span>6<span
class="p">.</span><span class="n">jar</span> <span class="n">HelloWorld</span><span
class="p">.</span><span class="n">java</span>
-<span class="n">java</span> <span class="o">-</span><span class="n">cp</span>
<span class="n">lib</span><span class="o">/</span><span class="n">odfdom</span><span
class="o">-</span><span class="n">java</span><span class="o">-</span>0<span
class="p">.</span>8<span class="p">.</span>7<span class="p">.</span><span
class="n">jar</span><span class="p">:</span><span class="n">lib</span><span
class="o">/</span><span class="n">simple</span><span class="o">-</span><span
class="n">odf</span><span class="o">-</span>0<span class="p">.</span>6<span
class="p">.</span>6<span class="p">.</span><span class="n">jar</span><span
class="p">:</span><span class="n">lib</span><span class="o">/</span><span
class="n">xercesImpl</span><span class="p">.</span><span class="n">jar</span><span
class="p">:.</span> <span class="n">HelloWorld</span>
+<p>If you use an IDE, you can just run this class as a Java Application. If you use
command line, you may compile the code and run it with the following commands:</p>
+<div class="codehilite"><pre><span class="n">javac</span> <span
class="o">-</span><span class="n">cp</span> <span class="n">lib</span><span
class="o">/</span><span class="n">simple</span><span class="o">-</span><span
class="n">odf</span><span class="o">-</span>0<span class="p">.</span>8<span
class="p">.</span>2<span class="o">-</span><span class="n">incubating</span><span
class="o">-</span><span class="n">jar</span><span class="o">-</span><span
class="n">with</span><span class="o">-</span><span class="n">dependencies</span><span
class="p">.</span><span class="n">jar</span><span class="p">:.</span>
<span class="n">HelloWorld</span><span class="p">.</span><span
class="n">java</span>
+<span class="n">java</span> <span class="o">-</span><span class="n">cp</span>
<span class="n">lib</span><span class="o">/</span><span class="n">simple</span><span
class="o">-</span><span class="n">odf</span><span class="o">-</span>0<span
class="p">.</span>8<span class="p">.</span>2<span class="o">-</span><span
class="n">incubating</span><span class="o">-</span><span class="n">jar</span><span
class="o">-</span><span class="n">with</span><span class="o">-</span><span
class="n">dependencies</span><span class="p">.</span><span class="n">jar</span><span
class="p">:.</span> <span class="n">HelloWorld</span>
 </pre></div>
 
 

Modified: websites/staging/odftoolkit/trunk/content/odftoolkit/simple/helloworld.zip
==============================================================================
Binary files - no diff available.



Mime
View raw message