<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>odf-users@incubator.apache.org Archives</title>
<link rel="self" href="http://mail-archives.apache.org/mod_mbox/incubator-odf-users/?format=atom"/>
<link href="http://mail-archives.apache.org/mod_mbox/incubator-odf-users/"/>
<id>http://mail-archives.apache.org/mod_mbox/incubator-odf-users/</id>
<updated>2013-06-19T21:45:30Z</updated>
<entry>
<title>Re: odftoolkit ignores data of group rows</title>
<author><name>Svante Schubert &lt;svante.schubert@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-odf-users/201306.mbox/%3c51B9829B.30701@gmail.com%3e"/>
<id>urn:uuid:%3c51B9829B-30701@gmail-com%3e</id>
<updated>2013-06-13T08:28:11Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hello Frank,&#010;&#010;It sounds like an issue, but it is not easy to reproduce your test&#010;scenario from the description alone.&#010;Could you try to add a test method with your functionality to&#010;http://svn.apache.org/viewvc/incubator/odf/trunk/odfdom/src/test/java/org/odftoolkit/odfdom/doc/TableTest.java?view=markup&#010;which triggers the problem?&#010;In addition you might place your test document to&#010;http://svn.apache.org/viewvc/incubator/odf/trunk/odfdom/src/test/resources/&#010;&#010;You might attach a patch to an bugzilla issue at the URL&#010;https://issues.apache.org/jira/browse/ODFTOOLKIT&#010;There is a well hidden button in the upper right corner, or simply&#010;search "create issue" on that page.&#010;&#010;After that one of the developers will be able to get a look into it.&#010;&#010;If there is any further question on the way, do not hesitate to ask.&#010;&#010;Thanks for your feed-back, Frank!&#010;Svante&#010;&#010;&#010;On 13.06.2013 10:09, Frank Ho wrote:&#010;&gt; Hi, All&#010;&gt;     I have next ods file :           row 1   value1row 2   value2row 3   value3row 4&#010;  value4row 5   value5&#010;&gt; if I add group for row 2 to row 4 (Data -&gt; Group and Outline -&gt; Group), then when&#010;I use getDisplayText(), it cannot read data of row 2 to row 4, and odftoolkit will take row&#010;5 as row 2.&#010;&gt; if I delete the group, then all things back to normal.&#010;&gt; Is it a bug?&#010;&gt; Thanks&#010;&gt;  &#009;&#009; &#009;   &#009;&#009;  &#010;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>odftoolkit ignores data of group rows</title>
<author><name>Frank Ho &lt;hwl@windowslive.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-odf-users/201306.mbox/%3cBAY173-W41CA695676E94FD71BB405AF870@phx.gbl%3e"/>
<id>urn:uuid:%3cBAY173-W41CA695676E94FD71BB405AF870@phx-gbl%3e</id>
<updated>2013-06-13T08:09:27Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi, All&#013;&#010;    I have next ods file :           row 1   value1row 2   value2row 3   value3row 4   value4row&#010;5   value5&#013;&#010;if I add group for row 2 to row 4 (Data -&gt; Group and Outline -&gt; Group), then when I&#010;use getDisplayText(), it cannot read data of row 2 to row 4, and odftoolkit will take row&#010;5 as row 2.&#013;&#010;if I delete the group, then all things back to normal.&#013;&#010;Is it a bug?&#013;&#010;Thanks&#013;&#010; &#009;&#009; &#009;   &#009;&#009;  
</pre>
</div>
</content>
</entry>
<entry>
<title>RE: getDisplayText cannot return value of date field</title>
<author><name>Frank Ho &lt;hwl@windowslive.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-odf-users/201306.mbox/%3cBAY173-W15F1F53EC3D495C11ABA29AF9B0@phx.gbl%3e"/>
<id>urn:uuid:%3cBAY173-W15F1F53EC3D495C11ABA29AF9B0@phx-gbl%3e</id>
<updated>2013-06-09T10:06:16Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Thanks for the reply!&#013;&#010;Sorry, I forgot to mention, I tried 'getDateValue', but it throws 'NullPointerException'.&#013;&#010;Thanks&#013;&#010;&gt; Date: Sun, 9 Jun 2013 17:35:56 +0800&#013;&#010;&gt; Subject: Re: getDisplayText cannot return value of date field&#013;&#010;&gt; From: ian@amham.net&#013;&#010;&gt; To: odf-users@incubator.apache.org&#013;&#010;&gt; &#013;&#010;&gt; Hi Frank,&#013;&#010;&gt; &#013;&#010;&gt; On Sun, Jun 9, 2013 at 4:21 PM, Frank Ho &lt;hwl@windowslive.com&gt; wrote:&#013;&#010;&gt; &#013;&#010;&gt; &gt; Hi,All&#013;&#010;&gt; &gt;     I placed a date field in a cell, and choosed a date.&#013;&#010;&gt; &gt;     In code, I got this cell via getCellByPosition(), then use&#013;&#010;&gt; &gt; getDisplayText, but it returned an empty string.&#013;&#010;&gt; &gt;     While if I placed a ListBox in this cell, then use getDisplayText, it&#013;&#010;&gt; &gt; can return the value correctly.&#013;&#010;&gt; &gt;     How can I get the value of date field in a cell?&#013;&#010;&gt; &gt;&#013;&#010;&gt; &#013;&#010;&gt; try getDateValue which will return a Calendar and then format as you want&#013;&#010;&gt; using normal Java date format classes.&#013;&#010;&gt; &#013;&#010;&gt; I'm just guessing, but if your cell really is a date then the underlying&#013;&#010;&gt; TextExtractor used in GetDisplayText may not work?&#013;&#010;&gt; &#013;&#010;&gt; &#013;&#010;&gt; &#013;&#010;&gt; &gt;     Thanks!&#013;&#010;&gt; &#013;&#010;&gt; &#013;&#010;&gt; &#013;&#010;&gt; -- &#013;&#010;&gt; Cheers,&#013;&#010;&gt; &#013;&#010;&gt; Ian C&#013;&#010; &#009;&#009; &#009;   &#009;&#009;  
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: getDisplayText cannot return value of date field</title>
<author><name>Ian C &lt;ian@amham.net&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-odf-users/201306.mbox/%3cCAKw-CVKD8vkkJ5259VKb8KjAOzje+ymngA9f53jHLaW5veZO3g@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCAKw-CVKD8vkkJ5259VKb8KjAOzje+ymngA9f53jHLaW5veZO3g@mail-gmail-com%3e</id>
<updated>2013-06-09T09:35:56Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Frank,&#010;&#010;On Sun, Jun 9, 2013 at 4:21 PM, Frank Ho &lt;hwl@windowslive.com&gt; wrote:&#010;&#010;&gt; Hi,All&#010;&gt;     I placed a date field in a cell, and choosed a date.&#010;&gt;     In code, I got this cell via getCellByPosition(), then use&#010;&gt; getDisplayText, but it returned an empty string.&#010;&gt;     While if I placed a ListBox in this cell, then use getDisplayText, it&#010;&gt; can return the value correctly.&#010;&gt;     How can I get the value of date field in a cell?&#010;&gt;&#010;&#010;try getDateValue which will return a Calendar and then format as you want&#010;using normal Java date format classes.&#010;&#010;I'm just guessing, but if your cell really is a date then the underlying&#010;TextExtractor used in GetDisplayText may not work?&#010;&#010;&#010;&#010;&gt;     Thanks!&#010;&#010;&#010;&#010;-- &#010;Cheers,&#010;&#010;Ian C&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>getDisplayText cannot return value of date field</title>
<author><name>Frank Ho &lt;hwl@windowslive.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-odf-users/201306.mbox/%3cBAY173-W3860224359A3EE070C0A93AF9B0@phx.gbl%3e"/>
<id>urn:uuid:%3cBAY173-W3860224359A3EE070C0A93AF9B0@phx-gbl%3e</id>
<updated>2013-06-09T08:21:09Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,All&#013;&#010;    I placed a date field in a cell, and choosed a date.&#013;&#010;    In code, I got this cell via getCellByPosition(), then use getDisplayText, but it returned&#010;an empty string.&#013;&#010;    While if I placed a ListBox in this cell, then use getDisplayText, it can return the value&#010;correctly.&#013;&#010;    How can I get the value of date field in a cell?&#013;&#010;    Thanks! &#009;&#009; &#009;   &#009;&#009;  
</pre>
</div>
</content>
</entry>
<entry>
<title>FW: Use and Progress Questions.</title>
<author><name>A Z &lt;stargate7thsymbol@live.co.uk&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-odf-users/201303.mbox/%3cBAY147-W1412772B3CEFF24B3E9766D0E20@phx.gbl%3e"/>
<id>urn:uuid:%3cBAY147-W1412772B3CEFF24B3E9766D0E20@phx-gbl%3e</id>
<updated>2013-03-12T03:03:00Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
&#010;I know that it is possible to append an image to a TextDocument (*.odt)&#010;using a resource URI.&#010; &#010;-Is it possible to insert an image at a particular character run or cusor&#010; position?&#010; &#010;-Is it possible just to delete an image, irrespective of its location?&#010;&#010;-Are these options in the present ODF Toolkit?  At what state is the library,&#010; and are these options slated to be added later?&#010; &#009;&#009; &#009;   &#009;&#009;  &#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>AUTO: Michael Edler von der Planitz/Germany/IBM is out of the office until 19.08.2003. (returning 11.03.2013)</title>
<author><name>Michael Edler von der Planitz &lt;CSDMHOFF@de.ibm.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-odf-users/201303.mbox/%3cOFA99D2217.F1F12B16-ONC1257B29.00329B97-C1257B29.00329B98@de.ibm.com%3e"/>
<id>urn:uuid:%3cOFA99D2217-F1F12B16-ONC1257B29-00329B97-C1257B29-00329B98@de-ibm-com%3e</id>
<updated>2013-03-09T09:12:46Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
&#010;I am out of the office until 11.03.2013.&#010;&#010;Ich komme wieder ....      ;-)&#010;&#010;&#010;Note: This is an automated response to your message  "Use and Progress&#010;Questions." sent on 09/03/2013 7:25:16.&#010;&#010;This is the only notification you will receive while this person is away.&#010;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Use and Progress Questions.</title>
<author><name>A Z &lt;stargate7thsymbol@live.co.uk&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-odf-users/201303.mbox/%3cBAY147-W172775DA451AFCEEB9BC91D0E70@phx.gbl%3e"/>
<id>urn:uuid:%3cBAY147-W172775DA451AFCEEB9BC91D0E70@phx-gbl%3e</id>
<updated>2013-03-09T06:25:16Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
&#010;I know that it is possible to append an image to a TextDocument (*.odt)&#010;&#010;using a resource URI.&#010;&#010;-Is it possible to insert an image at a particular character run or cusor&#010;position?&#010;&#010;-Is it possible just to delete an image, irrespective of its location?&#010;&#010;&#010;-Are these options in the present ODF Toolkit?  At what state is the library,&#010;and are these options slated to be added later?&#010; &#009;&#009; &#009;   &#009;&#009;  &#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Add an document in another document</title>
<author><name>Dali Liu &lt;wawalovo@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-odf-users/201303.mbox/%3cCAMargSJEELWJ1njio_=2FGAKRFxoZi8hjiwqKMaitTWLjraBaQ@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCAMargSJEELWJ1njio_=2FGAKRFxoZi8hjiwqKMaitTWLjraBaQ@mail-gmail-com%3e</id>
<updated>2013-03-01T20:15:57Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
2013/3/1 Shemeer AT &lt;shemeerat@hotmail.com&gt;&#010;&#010;&gt;&#010;&gt;&#010;&gt;&#010;&gt; Hello,&#010;&gt;&#010;&gt;&#010;&gt;&#010;&gt; I am new to this project.&#010;&gt;&#010;&gt; I would like to add one document in another document.&#010;&gt;&#010;&gt; How I can achieve this using java.&#010;&gt;&#010;&#010;Yes, you can do this by the latest ODF Simple JAVA api. It's very easy,&#010;here is the sample codes.&#010;    public void testinsertContentFromDocumentAfter() {&#010;        TextDocument src1 = TextDocument.loadDocument("SourceDocument.odt");&#010;        TextDocument target1 =&#010;TextDocument.loadDocument("TargetDocument.odt");&#010;        Paragraph p1 = target1.getParagraphByIndex(2, true);&#010;        target1.insertContentFromDocumentAfter(src1, p1, false);&#010;&#010;target1.save(ResourceUtilities.newTestOutputFile("TestInsertDocumentWithStyleAfter.odt"));&#010;    }&#010;&#010;&gt;&#010;&gt; Please help me.&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Add an document in another document</title>
<author><name>Alexandro Colorado &lt;jza@oooes.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-odf-users/201303.mbox/%3cCAMK9kThy5QSFzyg7cVDScLRLTerMiXZCe7DC9dd1QhEB4=JPpw@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCAMK9kThy5QSFzyg7cVDScLRLTerMiXZCe7DC9dd1QhEB4=JPpw@mail-gmail-com%3e</id>
<updated>2013-03-01T14:26:48Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
There is a basic macro in openoffice that does this, the code uses the&#010;methodology of extracting the document and appending to the other document.&#010;I know they use OOo on the background, but shoud give you some notes about&#010;the logic of the way to do this. Something similar to a bash:&#010;&#010;cat doc1 doc2 &gt; newdoc.&#010;&#010;There is also a ooomerge.py (&#010;http://www.openoffice.org/udk/python/samples/oomerge.py) script that&#010;generates a new document from 2 documents, the code uses from&#010;com.sun.star.style.BreakType import PAGE_BEFORE, PAGE_AFTER. The function&#010;use the following lines to&#010;&#010;                    cursor.gotoEnd(False)&#010;                    cursor.BreakType = PAGE_BEFORE&#010;                    cursor.insertDocumentFromURL(fileUrl, ())&#010;&#010;Merge all documents:&#010;&#010;'Modified by: Andrew Pitonyak&#010;Sub MergeDocumentsInDirectory()&#010;' On Error Resume Next&#010;Dim DestDirectory As String&#010;Dim FileName As String&#010;Dim SrcFile As String, DstFile As String&#010;Dim oDesktop, oDoc, oCursor, oText&#010;Dim argsInsert()&#010;Dim args()&#010;'Remove the following comments to do things hidden&#010;'Dim args(0) As New com.sun.star.beans.PropertyValue&#010;'args(0).name="Hidden"&#010;'args(0).value=true&#010;'Which desitnation directory?&#010;DestDirectory=Trim(GetFolderName())&#010;If DestDirectory = "" Then&#010;MsgBox "No directory selected, exiting",16,"Merging Documents"&#010;Exit Sub&#010;End If&#010;REM Force a trailing backslash.&#010;REM This is okay because using URL notation&#010;If Right(DestDirectory,1) &lt;&gt; "/" Then&#010;DestDirectory=DestDirectory &amp; "/"&#010;End If&#010;oDeskTop=CreateUnoService("com.sun.star.frame.Desktop")&#010;REM Read the first file!&#010;FileName=Dir(DestDirectory)&#010;DstFile = ConvertToURL(DestDirectory &amp; "ResultatFusion.sxw")&#010;Do While FileName &lt;&gt; ""&#010;If lcase(right(FileName,3))="sxw" Then&#010;SrcFile = ConvertToURL(DestDirectory &amp; FileName)&#010;If IsNull(oDoc) OR IsEmpty(oDoc) Then&#010;FileCopy( SrcFile, DstFile )&#010;oDoc=oDeskTop.Loadcomponentfromurl(DstFile, _&#010;"_blank", 0, Args())&#010;oText = oDoc.getText&#010;oCursor = oText.createTextCursor()&#010;Else&#010;oCursor.gotoEnd(false)&#010;oCursor.BreakType = com.sun.star.style.BreakType.PAGE_BEFORE&#010;oCursor.insertDocumentFromUrl(SrcFile, argsInsert())&#010;End If&#010;End If&#010;FileName=dir()&#010;Loop&#010;If IsNull(oDoc) OR IsEmpty(oDoc) Then&#010;MsgBox "No documents merged!",16,"Merging Documents"&#010;Exit Sub&#010;End If&#010;'Save the document&#010;Dim args2()&#010;oDoc.StoreAsURL(DestDirectory &amp; "ResultatFusion.sxw",args2())&#010;If HasUnoInterfaces(oDoc, "com.sun.star.util.XCloseable") Then&#010;oDoc.close(true)&#010;Else&#010;oDoc.dispose()&#010;End If&#010;'Reload the document!&#010;oDoc=oDeskTop.Loadcomponentfromurl(DstFile,"_blank",0,Args2())&#010;End Sub&#010;&#010;&#010;&#010;On Fri, Mar 1, 2013 at 7:42 AM, Rob Weir &lt;robweir@apache.org&gt; wrote:&#010;&#010;&gt; On Thu, Feb 28, 2013 at 2:31 PM, Shemeer AT &lt;shemeerat@hotmail.com&gt; wrote:&#010;&gt; &gt;&#010;&gt; &gt;&#010;&gt; &gt;&#010;&gt; &gt; Hello,&#010;&gt; &gt;&#010;&gt; &gt;&#010;&gt; &gt;&#010;&gt; &gt; I am new to this project.&#010;&gt; &gt;&#010;&gt; &gt; I would like to add one document in another document.&#010;&gt; &gt;&#010;&gt;&#010;&gt; What do you mean?&#010;&gt;&#010;&gt; 1 Add the contents of one document to another document, i.e., merge&#010;&gt; two documents?&#010;&gt;&#010;&gt; or&#010;&gt;&#010;&gt; 2) Insert one document as an embedding (a subdocument) into a second&#010;&gt; document?&#010;&gt;&#010;&gt; -Rob&#010;&gt;&#010;&gt; &gt; How I can achieve this using java.&#010;&gt; &gt;&#010;&gt; &gt; Please help me.&#010;&gt;&#010;&#010;&#010;&#010;-- &#010;Alexandro Colorado&#010;Apache OpenOffice Contributor&#010;http://es.openoffice.org&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Add an document in another document</title>
<author><name>Rob Weir &lt;robweir@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-odf-users/201303.mbox/%3cCAP-ksohapfZQptpbvgmYtrs7VQ7vJLWcuwTKSKDn7pW+pskTsw@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCAP-ksohapfZQptpbvgmYtrs7VQ7vJLWcuwTKSKDn7pW+pskTsw@mail-gmail-com%3e</id>
<updated>2013-03-01T13:42:31Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Thu, Feb 28, 2013 at 2:31 PM, Shemeer AT &lt;shemeerat@hotmail.com&gt; wrote:&#010;&gt;&#010;&gt;&#010;&gt;&#010;&gt; Hello,&#010;&gt;&#010;&gt;&#010;&gt;&#010;&gt; I am new to this project.&#010;&gt;&#010;&gt; I would like to add one document in another document.&#010;&gt;&#010;&#010;What do you mean?&#010;&#010;1 Add the contents of one document to another document, i.e., merge&#010;two documents?&#010;&#010;or&#010;&#010;2) Insert one document as an embedding (a subdocument) into a second document?&#010;&#010;-Rob&#010;&#010;&gt; How I can achieve this using java.&#010;&gt;&#010;&gt; Please help me.&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Add an document in another document</title>
<author><name>Shemeer AT &lt;shemeerat@hotmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-odf-users/201302.mbox/%3cBLU403-EAS13706757BB96EBF81A54C20BBFE0@phx.gbl%3e"/>
<id>urn:uuid:%3cBLU403-EAS13706757BB96EBF81A54C20BBFE0@phx-gbl%3e</id>
<updated>2013-02-28T19:31:09Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
&#013;&#010;&#013;&#010;&#013;&#010;Hello,&#013;&#010;&#013;&#010; &#013;&#010;&#013;&#010;I am new to this project.&#013;&#010;&#013;&#010;I would like to add one document in another document.&#013;&#010;&#013;&#010;How I can achieve this using java.&#013;&#010;&#013;&#010;Please help me.
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Underline text in spreadsheet cell</title>
<author><name>Ian Pilcher &lt;arequipeno@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-odf-users/201302.mbox/%3ckfr11e$g1k$1@ger.gmane.org%3e"/>
<id>urn:uuid:%3ckfr11e$g1k$1@ger-gmane-org%3e</id>
<updated>2013-02-17T16:38:09Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On 02/16/2013 06:14 PM, Ian Pilcher wrote:&#010;&gt; I am using the Simple API to create a spreadsheet.  I've been able to&#010;&gt; figure out how to do just about everything I need except for $SUBJECT.&#010;&gt; I've gotten as far as finding&#010;&gt; StyleTypeDefinitions.TextLinePosition.UNDER, but I can't figure out how&#010;&gt; to actually apply it to a cell.&#010;&#010;And the answer is that it's an attribute of the Font.&#010;&#010;-- &#010;========================================================================&#010;Ian Pilcher                                         arequipeno@gmail.com&#010;Sometimes there's nothing left to do but crash and burn...or die trying.&#010;========================================================================&#010;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Underline text in spreadsheet cell</title>
<author><name>Ian Pilcher &lt;arequipeno@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-odf-users/201302.mbox/%3ckfp7ds$nnj$1@ger.gmane.org%3e"/>
<id>urn:uuid:%3ckfp7ds$nnj$1@ger-gmane-org%3e</id>
<updated>2013-02-17T00:14:55Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I am using the Simple API to create a spreadsheet.  I've been able to&#010;figure out how to do just about everything I need except for $SUBJECT.&#010;I've gotten as far as finding&#010;StyleTypeDefinitions.TextLinePosition.UNDER, but I can't figure out how&#010;to actually apply it to a cell.&#010;&#010;I am currently using version 0.7 of the Simple API (from the 0.5&#010;download), but I could move up to the current SVN if needed.&#010;&#010;Thanks!&#010;&#010;-- &#010;========================================================================&#010;Ian Pilcher                                         arequipeno@gmail.com&#010;Sometimes there's nothing left to do but crash and burn...or die trying.&#010;========================================================================&#010;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Missing com.sun packages?</title>
<author><name>Ian Pilcher &lt;arequipeno@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-odf-users/201302.mbox/%3ckfol4a$42s$1@ger.gmane.org%3e"/>
<id>urn:uuid:%3ckfol4a$42s$1@ger-gmane-org%3e</id>
<updated>2013-02-16T19:02:37Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On 02/16/2013 12:40 PM, Nick Burch wrote:&#010;&gt; Are you possibly using GCJ rather than OpenJDK / the Oracle JDK? I&#010;&gt; believe com.sun.javadoc should be provided by the JVM&#010;&#010;Nope.  The problem was the change of java.vendor from "Sun Microsystems"&#010;to "Oracle Corporation".&#010;&#010;  https://issues.apache.org/jira/browse/ODFTOOLKIT-299&#010;&#010;Then I ran into this:&#010;&#010;  https://issues.apache.org/jira/browse/ODFTOOLKIT-318&#010;&#010;I was able to get the build to complete by manually updating the POM&#010;file (and sha1 file) in my .m2 cache.  I'm still hunting for the patch&#010;that's mentioned (but not included) in that issue.&#010;&#010;-- &#010;========================================================================&#010;Ian Pilcher                                         arequipeno@gmail.com&#010;Sometimes there's nothing left to do but crash and burn...or die trying.&#010;========================================================================&#010;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Missing com.sun packages?</title>
<author><name>Nick Burch &lt;apache@gagravarr.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-odf-users/201302.mbox/%3calpine.DEB.2.00.1302161839020.20839@urchin.earth.li%3e"/>
<id>urn:uuid:%3calpine-DEB-2-00-1302161839020-20839@urchin-earth-li%3e</id>
<updated>2013-02-16T18:40:51Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Sat, 16 Feb 2013, Ian Pilcher wrote:&#010;&gt; I am trying to build odftoolkit-0.5-incubating-src.tar.bz2 on Fedora 18.&#010;&gt; I'm not familiar with Maven, and I can't figure out what I need to do to&#010;&gt; get past this error (and many like it):&#010;&gt;&#010;&gt; [ERROR]&#010;&gt; /home/pilcher/odftoolkit-0.5-incubating/taglets/src/main/java/org/odftoolkit/odfdom/taglet/OdfElementTaglet.java:[27,22]&#010;&gt; error: package com.sun.javadoc does not exist&#010;&#010;Are you possibly using GCJ rather than OpenJDK / the Oracle JDK? I believe &#010;com.sun.javadoc should be provided by the JVM&#010;&#010;Nick&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Missing com.sun packages?</title>
<author><name>Ian Pilcher &lt;arequipeno@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-odf-users/201302.mbox/%3ckfod5h$vkk$1@ger.gmane.org%3e"/>
<id>urn:uuid:%3ckfod5h$vkk$1@ger-gmane-org%3e</id>
<updated>2013-02-16T16:46:44Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I am trying to build odftoolkit-0.5-incubating-src.tar.bz2 on Fedora 18.&#010;I'm not familiar with Maven, and I can't figure out what I need to do to&#010;get past this error (and many like it):&#010;&#010;[ERROR]&#010;/home/pilcher/odftoolkit-0.5-incubating/taglets/src/main/java/org/odftoolkit/odfdom/taglet/OdfElementTaglet.java:[27,22]&#010;error: package com.sun.javadoc does not exist&#010;&#010;Full output below.  Any suggestions appreciated.&#010;&#010;Thanks!&#010;&#010;[pilcher@ian odftoolkit-0.5-incubating]$ mvn -version&#010;Apache Maven 3.0.4 (rNON-CANONICAL_2012-11-09_15-39_mockbuild;&#010;2012-11-09 09:39:59-0600)&#010;Maven home: /usr/share/maven&#010;Java version: 1.7.0_09-icedtea, vendor: Oracle Corporation&#010;Java home: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.9.x86_64/jre&#010;Default locale: en_US, platform encoding: UTF-8&#010;OS name: "linux", version: "3.7.6-201.fc18.x86_64", arch: "amd64",&#010;family: "unix"&#010;[pilcher@ian odftoolkit-0.5-incubating]$ mvn clean install&#010;[INFO] Scanning for projects...&#010;[INFO]&#010;------------------------------------------------------------------------&#010;[INFO] Reactor Build Order:&#010;[INFO]&#010;[INFO] Apache ODF Toolkit&#010;[INFO] ODF Custom Javadoc Taglets&#010;[INFO] XML Schema to Template Mapping Tool: Parent POM&#010;[INFO] XML Schema to Template Mapping Tool: Library&#010;[INFO] XML Schema to Template Mapping Tool: Maven2 Plugin&#010;[INFO] ODFDOM&#010;[INFO] ODF XSLT-Runner&#010;[INFO] ODF XSLT-Runner Ant Task&#010;[INFO] ODF Validator&#010;[INFO] Simple Java API for ODF (Simple ODF)&#010;[INFO]&#010;&#010;[INFO]&#010;------------------------------------------------------------------------&#010;[INFO] Building Apache ODF Toolkit 0.5-incubating&#010;[INFO]&#010;------------------------------------------------------------------------&#010;[INFO]&#010;[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ odftoolkit ---&#010;[INFO]&#010;[INFO] --- maven-remote-resources-plugin:1.2.1:process (default) @&#010;odftoolkit ---&#010;[INFO]&#010;[INFO] --- maven-site-plugin:3.0:attach-descriptor (attach-descriptor) @&#010;odftoolkit ---&#010;[INFO]&#010;[INFO] --- maven-install-plugin:2.3.1:install (default-install) @&#010;odftoolkit ---&#010;[INFO] Installing /home/pilcher/odftoolkit-0.5-incubating/pom.xml to&#010;/home/pilcher/.m2/repository/org/apache/odftoolkit/odftoolkit/0.5-incubating/odftoolkit-0.5-incubating.pom&#010;[INFO]&#010;&#010;[INFO]&#010;------------------------------------------------------------------------&#010;[INFO] Building ODF Custom Javadoc Taglets 0.8.8-incubating&#010;[INFO]&#010;------------------------------------------------------------------------&#010;[INFO]&#010;[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ taglets ---&#010;[INFO]&#010;[INFO] --- maven-remote-resources-plugin:1.2.1:process (default) @&#010;taglets ---&#010;[INFO]&#010;[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @&#010;taglets ---&#010;[debug] execute contextualize&#010;[INFO] Using 'UTF-8' encoding to copy filtered resources.&#010;[INFO] skip non existing resourceDirectory&#010;/home/pilcher/odftoolkit-0.5-incubating/taglets/src/main/resources&#010;[INFO] Copying 3 resources&#010;[INFO]&#010;[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @&#010;taglets ---&#010;[INFO] Compiling 3 source files to&#010;/home/pilcher/odftoolkit-0.5-incubating/taglets/target/classes&#010;[INFO] -------------------------------------------------------------&#010;[ERROR] COMPILATION ERROR :&#010;[INFO] -------------------------------------------------------------&#010;[ERROR]&#010;/home/pilcher/odftoolkit-0.5-incubating/taglets/src/main/java/org/odftoolkit/odfdom/taglet/OdfElementTaglet.java:[27,22]&#010;error: package com.sun.javadoc does not exist&#010;[ERROR]&#010;/home/pilcher/odftoolkit-0.5-incubating/taglets/src/main/java/org/odftoolkit/odfdom/taglet/OdfElementTaglet.java:[28,28]&#010;error: package com.sun.tools.doclets does not exist&#010;[ERROR]&#010;/home/pilcher/odftoolkit-0.5-incubating/taglets/src/main/java/org/odftoolkit/odfdom/taglet/OdfElementTaglet.java:[43,42]&#010;error: cannot find symbol&#010;[ERROR]  class Taglet&#010;/home/pilcher/odftoolkit-0.5-incubating/taglets/src/main/java/org/odftoolkit/odfdom/taglet/OdfElementTaglet.java:[137,45]&#010;error: cannot find symbol&#010;[ERROR]  class OdfElementTaglet&#010;/home/pilcher/odftoolkit-0.5-incubating/taglets/src/main/java/org/odftoolkit/odfdom/taglet/OdfElementTaglet.java:[151,28]&#010;error: cannot find symbol&#010;[ERROR]  class OdfElementTaglet&#010;/home/pilcher/odftoolkit-0.5-incubating/taglets/src/main/java/org/odftoolkit/odfdom/taglet/OdfElementTaglet.java:[163,28]&#010;error: cannot find symbol&#010;[ERROR]  class OdfElementTaglet&#010;/home/pilcher/odftoolkit-0.5-incubating/taglets/src/main/java/org/odftoolkit/odfdom/taglet/OdfAttributeTaglet.java:[27,22]&#010;error: package com.sun.javadoc does not exist&#010;[ERROR]&#010;/home/pilcher/odftoolkit-0.5-incubating/taglets/src/main/java/org/odftoolkit/odfdom/taglet/OdfAttributeTaglet.java:[28,28]&#010;error: package com.sun.tools.doclets does not exist&#010;[ERROR]&#010;/home/pilcher/odftoolkit-0.5-incubating/taglets/src/main/java/org/odftoolkit/odfdom/taglet/OdfAttributeTaglet.java:[42,43]&#010;error: cannot find symbol&#010;[ERROR]  class Taglet&#010;/home/pilcher/odftoolkit-0.5-incubating/taglets/src/main/java/org/odftoolkit/odfdom/taglet/OdfAttributeTaglet.java:[136,45]&#010;error: cannot find symbol&#010;[ERROR]  class OdfAttributeTaglet&#010;/home/pilcher/odftoolkit-0.5-incubating/taglets/src/main/java/org/odftoolkit/odfdom/taglet/OdfAttributeTaglet.java:[151,28]&#010;error: cannot find symbol&#010;[ERROR]  class OdfAttributeTaglet&#010;/home/pilcher/odftoolkit-0.5-incubating/taglets/src/main/java/org/odftoolkit/odfdom/taglet/OdfAttributeTaglet.java:[164,28]&#010;error: cannot find symbol&#010;[ERROR]  class OdfAttributeTaglet&#010;/home/pilcher/odftoolkit-0.5-incubating/taglets/src/main/java/org/odftoolkit/odfdom/taglet/OdfDatatypeTaglet.java:[26,22]&#010;error: package com.sun.javadoc does not exist&#010;[ERROR]&#010;/home/pilcher/odftoolkit-0.5-incubating/taglets/src/main/java/org/odftoolkit/odfdom/taglet/OdfDatatypeTaglet.java:[27,28]&#010;error: package com.sun.tools.doclets does not exist&#010;[ERROR]&#010;/home/pilcher/odftoolkit-0.5-incubating/taglets/src/main/java/org/odftoolkit/odfdom/taglet/OdfDatatypeTaglet.java:[42,42]&#010;error: cannot find symbol&#010;[ERROR]  class Taglet&#010;/home/pilcher/odftoolkit-0.5-incubating/taglets/src/main/java/org/odftoolkit/odfdom/taglet/OdfDatatypeTaglet.java:[135,41]&#010;error: cannot find symbol&#010;[ERROR]  class OdfDatatypeTaglet&#010;/home/pilcher/odftoolkit-0.5-incubating/taglets/src/main/java/org/odftoolkit/odfdom/taglet/OdfDatatypeTaglet.java:[150,24]&#010;error: cannot find symbol&#010;[ERROR]  class OdfDatatypeTaglet&#010;/home/pilcher/odftoolkit-0.5-incubating/taglets/src/main/java/org/odftoolkit/odfdom/taglet/OdfDatatypeTaglet.java:[163,24]&#010;error: cannot find symbol&#010;[ERROR]  class OdfDatatypeTaglet&#010;/home/pilcher/odftoolkit-0.5-incubating/taglets/src/main/java/org/odftoolkit/odfdom/taglet/OdfElementTaglet.java:[139,12]&#010;error: cannot find symbol&#010;[ERROR]  class OdfElementTaglet&#010;/home/pilcher/odftoolkit-0.5-incubating/taglets/src/main/java/org/odftoolkit/odfdom/taglet/OdfAttributeTaglet.java:[138,12]&#010;error: cannot find symbol&#010;[ERROR]  class OdfAttributeTaglet&#010;/home/pilcher/odftoolkit-0.5-incubating/taglets/src/main/java/org/odftoolkit/odfdom/taglet/OdfDatatypeTaglet.java:[137,2]&#010;error: cannot find symbol&#010;[INFO] 21 errors&#010;[INFO] -------------------------------------------------------------&#010;[INFO]&#010;------------------------------------------------------------------------&#010;[INFO] Reactor Summary:&#010;[INFO]&#010;[INFO] Apache ODF Toolkit ................................ SUCCESS [1.951s]&#010;[INFO] ODF Custom Javadoc Taglets ........................ FAILURE [1.191s]&#010;[INFO] XML Schema to Template Mapping Tool: Parent POM ... SKIPPED&#010;[INFO] XML Schema to Template Mapping Tool: Library ...... SKIPPED&#010;[INFO] XML Schema to Template Mapping Tool: Maven2 Plugin  SKIPPED&#010;[INFO] ODFDOM ............................................ SKIPPED&#010;[INFO] ODF XSLT-Runner ................................... SKIPPED&#010;[INFO] ODF XSLT-Runner Ant Task .......................... SKIPPED&#010;[INFO] ODF Validator ..................................... SKIPPED&#010;[INFO] Simple Java API for ODF (Simple ODF) .............. SKIPPED&#010;[INFO]&#010;------------------------------------------------------------------------&#010;[INFO] BUILD FAILURE&#010;[INFO]&#010;------------------------------------------------------------------------&#010;[INFO] Total time: 3.951s&#010;[INFO] Finished at: Sat Feb 16 10:42:34 CST 2013&#010;[INFO] Final Memory: 22M/605M&#010;[INFO]&#010;------------------------------------------------------------------------&#010;[ERROR] Failed to execute goal&#010;org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile&#010;(default-compile) on project taglets: Compilation failure: Compilation&#010;failure:&#010;[ERROR]&#010;/home/pilcher/odftoolkit-0.5-incubating/taglets/src/main/java/org/odftoolkit/odfdom/taglet/OdfElementTaglet.java:[27,22]&#010;error: package com.sun.javadoc does not exist&#010;[ERROR]&#010;/home/pilcher/odftoolkit-0.5-incubating/taglets/src/main/java/org/odftoolkit/odfdom/taglet/OdfElementTaglet.java:[28,28]&#010;error: package com.sun.tools.doclets does not exist&#010;[ERROR]&#010;/home/pilcher/odftoolkit-0.5-incubating/taglets/src/main/java/org/odftoolkit/odfdom/taglet/OdfElementTaglet.java:[43,42]&#010;error: cannot find symbol&#010;[ERROR] class Taglet&#010;[ERROR]&#010;/home/pilcher/odftoolkit-0.5-incubating/taglets/src/main/java/org/odftoolkit/odfdom/taglet/OdfElementTaglet.java:[137,45]&#010;error: cannot find symbol&#010;[ERROR] class OdfElementTaglet&#010;[ERROR]&#010;/home/pilcher/odftoolkit-0.5-incubating/taglets/src/main/java/org/odftoolkit/odfdom/taglet/OdfElementTaglet.java:[151,28]&#010;error: cannot find symbol&#010;[ERROR] class OdfElementTaglet&#010;[ERROR]&#010;/home/pilcher/odftoolkit-0.5-incubating/taglets/src/main/java/org/odftoolkit/odfdom/taglet/OdfElementTaglet.java:[163,28]&#010;error: cannot find symbol&#010;[ERROR] class OdfElementTaglet&#010;[ERROR]&#010;/home/pilcher/odftoolkit-0.5-incubating/taglets/src/main/java/org/odftoolkit/odfdom/taglet/OdfAttributeTaglet.java:[27,22]&#010;error: package com.sun.javadoc does not exist&#010;[ERROR]&#010;/home/pilcher/odftoolkit-0.5-incubating/taglets/src/main/java/org/odftoolkit/odfdom/taglet/OdfAttributeTaglet.java:[28,28]&#010;error: package com.sun.tools.doclets does not exist&#010;[ERROR]&#010;/home/pilcher/odftoolkit-0.5-incubating/taglets/src/main/java/org/odftoolkit/odfdom/taglet/OdfAttributeTaglet.java:[42,43]&#010;error: cannot find symbol&#010;[ERROR] class Taglet&#010;[ERROR]&#010;/home/pilcher/odftoolkit-0.5-incubating/taglets/src/main/java/org/odftoolkit/odfdom/taglet/OdfAttributeTaglet.java:[136,45]&#010;error: cannot find symbol&#010;[ERROR] class OdfAttributeTaglet&#010;[ERROR]&#010;/home/pilcher/odftoolkit-0.5-incubating/taglets/src/main/java/org/odftoolkit/odfdom/taglet/OdfAttributeTaglet.java:[151,28]&#010;error: cannot find symbol&#010;[ERROR] class OdfAttributeTaglet&#010;[ERROR]&#010;/home/pilcher/odftoolkit-0.5-incubating/taglets/src/main/java/org/odftoolkit/odfdom/taglet/OdfAttributeTaglet.java:[164,28]&#010;error: cannot find symbol&#010;[ERROR] class OdfAttributeTaglet&#010;[ERROR]&#010;/home/pilcher/odftoolkit-0.5-incubating/taglets/src/main/java/org/odftoolkit/odfdom/taglet/OdfDatatypeTaglet.java:[26,22]&#010;error: package com.sun.javadoc does not exist&#010;[ERROR]&#010;/home/pilcher/odftoolkit-0.5-incubating/taglets/src/main/java/org/odftoolkit/odfdom/taglet/OdfDatatypeTaglet.java:[27,28]&#010;error: package com.sun.tools.doclets does not exist&#010;[ERROR]&#010;/home/pilcher/odftoolkit-0.5-incubating/taglets/src/main/java/org/odftoolkit/odfdom/taglet/OdfDatatypeTaglet.java:[42,42]&#010;error: cannot find symbol&#010;[ERROR] class Taglet&#010;[ERROR]&#010;/home/pilcher/odftoolkit-0.5-incubating/taglets/src/main/java/org/odftoolkit/odfdom/taglet/OdfDatatypeTaglet.java:[135,41]&#010;error: cannot find symbol&#010;[ERROR] class OdfDatatypeTaglet&#010;[ERROR]&#010;/home/pilcher/odftoolkit-0.5-incubating/taglets/src/main/java/org/odftoolkit/odfdom/taglet/OdfDatatypeTaglet.java:[150,24]&#010;error: cannot find symbol&#010;[ERROR] class OdfDatatypeTaglet&#010;[ERROR]&#010;/home/pilcher/odftoolkit-0.5-incubating/taglets/src/main/java/org/odftoolkit/odfdom/taglet/OdfDatatypeTaglet.java:[163,24]&#010;error: cannot find symbol&#010;[ERROR] class OdfDatatypeTaglet&#010;[ERROR]&#010;/home/pilcher/odftoolkit-0.5-incubating/taglets/src/main/java/org/odftoolkit/odfdom/taglet/OdfElementTaglet.java:[139,12]&#010;error: cannot find symbol&#010;[ERROR] class OdfElementTaglet&#010;[ERROR]&#010;/home/pilcher/odftoolkit-0.5-incubating/taglets/src/main/java/org/odftoolkit/odfdom/taglet/OdfAttributeTaglet.java:[138,12]&#010;error: cannot find symbol&#010;[ERROR] class OdfAttributeTaglet&#010;[ERROR]&#010;/home/pilcher/odftoolkit-0.5-incubating/taglets/src/main/java/org/odftoolkit/odfdom/taglet/OdfDatatypeTaglet.java:[137,2]&#010;error: cannot find symbol&#010;[ERROR] -&gt; [Help 1]&#010;[ERROR]&#010;[ERROR] To see the full stack trace of the errors, re-run Maven with the&#010;-e switch.&#010;[ERROR] Re-run Maven using the -X switch to enable full debug logging.&#010;[ERROR]&#010;[ERROR] For more information about the errors and possible solutions,&#010;please read the following articles:&#010;[ERROR] [Help 1]&#010;http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException&#010;[ERROR]&#010;[ERROR] After correcting the problems, you can resume the build with the&#010;command&#010;[ERROR]   mvn &lt;goals&gt; -rf :taglets&#010;-- &#010;========================================================================&#010;Ian Pilcher                                         arequipeno@gmail.com&#010;Sometimes there's nothing left to do but crash and burn...or die trying.&#010;========================================================================&#010;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Getting bold text from Paragraph</title>
<author><name>Ian C &lt;ian@amham.net&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-odf-users/201301.mbox/%3cCAKw-CVLvBGZVXkzOpAc-CgE8i7PSy6+uE7xjft-oMdnOeev4NA@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCAKw-CVLvBGZVXkzOpAc-CgE8i7PSy6+uE7xjft-oMdnOeev4NA@mail-gmail-com%3e</id>
<updated>2013-01-20T04:11:20Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Yago,&#010;&#010;appologies for the delay in replying. Time gets away from us all ...&#010;&#010;I'm afraid I cannot give you a direct answer to your issue.&#010;However, if you look at the code in the TextNavigationTest and the&#010;other navigation tests you may get an idea of how to step through the&#010;document getting what you want.&#010;&#010;The tests there refer to the classes in the common.navigation package.&#010;&#010;Hope that helps,&#010;&#010;On Tue, Jan 15, 2013 at 8:30 PM, Yago Quiñoy Lobariñas&#010;&lt;yquinoy@indenova.com&gt; wrote:&#010;&gt; Hi again Ian.&#010;&gt;&#010;&gt; I'm sorry if my explanation wasnt clear. I'll try again.&#010;&gt;&#010;&gt; Here is my question:&#010;&gt;&#010;&gt; I have a odt file text document that contains just one paragraph with text.&#010;&gt;&#010;&gt; This paragraph just contains plain text. In this text, there's one word with&#010;&gt; bold style.&#010;&gt;&#010;&gt; Then, i open this odt text file wit SimpleApi library and i get the only one&#010;&gt; existing paragraph.&#010;&gt;&#010;&gt; When i want to get the paragraph's text, i use getTextContent() function.&#010;&gt;&#010;&gt; The text i get from this function is the correct one but for the bold text.&#010;&gt; It isn't within this string.&#010;&gt;&#010;&gt; Ok, so, your answer was to use "TextExtractor" and that worked, but i need&#010;&gt; to get every paragraph's portion to check his properties and even change&#010;&gt; them.&#010;&gt;&#010;&gt; How can i get the paragraph's portion for editing them?&#010;&gt;&#010;&gt; Regards. Yago.&#010;&gt;&#010;&gt;&#010;&gt;&#010;&gt;&#010;&gt; El 08/01/2013 15:09, Ian C escribió:&#010;&gt;&gt;&#010;&gt;&gt; Hi,&#010;&gt;&gt;&#010;&gt;&gt;&#010;&gt;&gt; check out the TextExtractor class it uses the visitor pattern to grab the&#010;&gt;&gt; text from child elements.&#010;&gt;&gt;&#010;&gt;&gt; I seem to remember a example in the cookbook.&#010;&gt;&gt;&#010;&gt;&gt; I think your bold text may be ignored because it is in a span element&#010;&gt;&gt; within a paragraph, so your code will not see it.&#010;&gt;&gt;&#010;&gt;&gt; Cheers,&#010;&gt;&gt;&#010;&gt;&gt; Ian&#010;&gt;&gt;&#010;&gt;&gt;&#010;&gt;&gt; On Tuesday, January 8, 2013, Yago Quiñoy Lobariñas &lt;yquinoy@indenova.com&gt;&#010;&gt;&gt; wrote:&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt; Hi.&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt; I've loaded a odt file in my Java code and im trying to get all document&#010;&gt;&gt;&#010;&gt;&gt; text with SimpleApi.&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt; The problem comes when some middle text is marked as bold text. SimpleApi&#010;&gt;&gt;&#010;&gt;&gt; ignores it and just shows the rest of the paragraph's text.&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt; Here is the code:&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt; {CODE}&#010;&gt;&gt;&gt; String allText = "";&#010;&gt;&gt;&gt;          try {&#010;&gt;&gt;&gt;              TextDocument odt = TextDocument.loadDocument(docPath);&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt;              Iterator&lt;Paragraph&gt; ip = odt.getParagraphIterator();&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt;              while (ip.hasNext()) {&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt;                  Paragraph paragraph = ip.next();&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt;                  //All text in paragraph&#010;&gt;&gt;&gt;                  allText = paragraph.getTextContent();&#010;&gt;&gt;&gt;                  System.out.println(allText);&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt;                  //I'm checking paragraph to ensure that there is my bold&#010;&gt;&gt;&#010;&gt;&gt; text.&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt;                  TextParagraphElementBase domp =&#010;&gt;&gt;&gt; paragraph.getOdfElement();&#010;&gt;&gt;&gt;                  System.out.println(domp.toString());&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt;              }&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt;          } catch (Exception ex) {&#010;&gt;&gt;&gt;              ex.printStackTrace();&#010;&gt;&gt;&gt;          }&#010;&gt;&gt;&gt; {CODE:END}&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt; An here is the output.&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt; aaaaaaaaaaaaaacccccccccccccc&#010;&gt;&gt;&gt; &lt;text:p text:style-name="Standard"&gt;aaaaaaaaaaaaaa&lt;text:span&#010;&gt;&gt;&#010;&gt;&gt; text:style-name="T1"&gt;bbbbbbbbbbbbbbbbb&lt;/text:span&gt;cccccccccccccc&lt;/text:p&gt;&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt; Thanks&#010;&gt;&gt;&gt; --&#010;&gt;&gt;&gt; Yago Quiñoy Lobariñas&#010;&gt;&gt;&gt; Área de desarrollo&#010;&gt;&gt;&gt; INDENOVA S.L.&#010;&gt;&gt;&gt; P.I. Vara de Quart&#010;&gt;&gt;&gt; C/Dels Traginers 14, 2º planta izq.&#010;&gt;&gt;&gt; 46014 Valencia&#010;&gt;&gt;&gt; Tel.(34) 96 381 99 47&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt; yquinoy@indenova.com &lt;mailto:yquinoy@indenova.com&gt;&#010;&gt;&gt;&gt; www.indenova.com &lt;http://www.indenova.com/&gt;&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt; *RESPETEMOS EL MEDIO AMBIENTE*:¿Necesita realmente imprimir este email?&#010;&gt;&gt;&gt; *PLEASE RESPECT THE ENVIRONMENT*: Do you really need to print this email?&#010;&gt;&gt;&gt; *CONFIDENCIALIDAD*: Este email es confidencial y para uso exclusivo de su&#010;&gt;&gt;&#010;&gt;&gt; destinatario.&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt; *CONFIDENTIALITY*: This email is confidential and for the exclusive use&#010;&gt;&gt;&#010;&gt;&gt; of its addressee.&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&#010;&gt;&gt;&#010;&gt;&gt; ---------------------------------------------------------------------------------------------------&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt; Descargue el visor gratuito de archivos firmados electrónicamente eSigna&#010;&gt;&gt;&#010;&gt;&gt; Viewer:&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt; http://www.indenova.com/eSignaViewer.php&#010;&gt;&gt;&gt;&#010;&gt;&gt;&#010;&gt;&gt; ---------------------------------------------------------------------------------------------------&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&#010;&gt;&#010;&gt;&#010;&gt; --&#010;&gt; Yago Quiñoy Lobariñas&#010;&gt; Área de desarrollo&#010;&gt; INDENOVA S.L.&#010;&gt; P.I. Vara de Quart&#010;&gt; C/Dels Traginers 14, 2º planta izq.&#010;&gt; 46014 Valencia&#010;&gt; Tel.(34) 96 381 99 47&#010;&gt;&#010;&gt; yquinoy@indenova.com &lt;mailto:yquinoy@indenova.com&gt;&#010;&gt; www.indenova.com &lt;http://www.indenova.com/&gt;&#010;&gt;&#010;&gt; *RESPETEMOS EL MEDIO AMBIENTE*:¿Necesita realmente imprimir este email?&#010;&gt; *PLEASE RESPECT THE ENVIRONMENT*: Do you really need to print this email?&#010;&gt; *CONFIDENCIALIDAD*: Este email es confidencial y para uso exclusivo de su&#010;&gt; destinatario.&#010;&gt; *CONFIDENTIALITY*: This email is confidential and for the exclusive use of&#010;&gt; its addressee.&#010;&gt;&#010;&gt; ---------------------------------------------------------------------------------------------------&#010;&gt; Descargue el visor gratuito de archivos firmados electrónicamente eSigna&#010;&gt; Viewer:&#010;&gt; http://www.indenova.com/eSignaViewer.php&#010;&gt; ---------------------------------------------------------------------------------------------------&#010;&gt;&#010;&gt;&#010;&#010;&#010;&#010;-- &#010;Cheers,&#010;&#010;Ian C&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>RE: EXTERNAL: Re: Set font per column or table in  sheardsheet documents</title>
<author><name>&quot;Steele, Raymond&quot; &lt;raymond.steele@lmco.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-odf-users/201301.mbox/%3cC8D3B988B58B3645A54B63274697FAD304B5E00E@HDXDSP54.us.lmco.com%3e"/>
<id>urn:uuid:%3cC8D3B988B58B3645A54B63274697FAD304B5E00E@HDXDSP54-us-lmco-com%3e</id>
<updated>2013-01-18T17:35:00Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Thanks,&#010;&#010;We did look into these, but wanted to make sure we were not missing something. Thanks again,&#010;for your help.&#010;&#010;From: Svante Schubert [mailto:svante.schubert@gmail.com]&#010;Sent: Friday, January 18, 2013 2:37 AM&#010;To: odf-dev@incubator.apache.org&#010;Cc: odf-users@incubator.apache.org; odf-users-faq@incubator.apache.org; Steele, Raymond&#010;Subject: EXTERNAL: Re: Set font per column or table in sheardsheet documents&#010;&#010;The quick answer is, that the setting of a font is not possible at a column or table in ODF.&#010;But usability functionality might be added, at the Simple API, yet not existing.&#010;&#010;&#010;In the following how someone can double check such a question:&#010;&#010;In the definition of the ODF 1.2 XML, the RelaxNG grammar ODF 1.2 schema http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-schema.rng&#010;&#010;The following constrained for styles from columns and tables are explained&#010;&lt;group&gt;&#010;    &lt;attribute name="style:family"&gt;&#010;        &lt;value&gt;table&lt;/value&gt;&#010;    &lt;/attribute&gt;&#010;    &lt;optional&gt;&#010;        &lt;ref name="style-table-properties"/&gt;&#010;    &lt;/optional&gt;&#010;&lt;/group&gt;&#010;&lt;group&gt;&#010;    &lt;attribute name="style:family"&gt;&#010;        &lt;value&gt;table-column&lt;/value&gt;&#010;    &lt;/attribute&gt;&#010;    &lt;optional&gt;&#010;        &lt;ref name="style-table-column-properties"/&gt;&#010;    &lt;/optional&gt;&#010;&lt;/group&gt;&#010;&#010;When in doubt the family name is mentioned in the spec&#010;http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#a16_36Table_Styles&#010;or open the XML file with an editor (I use JEdit with the Archive extension to open the XML&#010;from the ZIP, using XML Indent extension to indent the XML with a keyboard shortcut)&#010;&#010;The possible style properties of a table can easily be seen at:&#010;http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#element-style_table-properties&#010;&#010;&gt;From a column at:&#010;http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#element-style_table-column-properties&#010;&#010;As you see from the references above, there is no Font style (i.e. fo:style-name&lt;http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#property-fo_font-style&gt;)&#010;is possible to be set at table/column. Q.E.D. ;)&#010;&#010;But someone could of course add some usability functionality to handle the font of the overall&#010;table.&#010;Similar like OOXML border styles given at the table itself have to be mapped to every cell&#010;in ODF.&#010;&#010;Best regards,&#010;Svante&#010;&#010;&#010;&#010;&#010;&#010;&#010;&#010;On 17.01.2013 17:11, Steele, Raymond wrote:&#010;&#010;Can anyone offer advice on this?&#010;&#010;&#010;&#010;Raymond&#010;&#010;&#010;&#010;From: Steele, Raymond&#010;&#010;Sent: Tuesday, January 15, 2013 8:53 AM&#010;&#010;To: 'odf-dev@incubator.apache.org&lt;mailto:odf-dev@incubator.apache.org&gt;'; 'odf-users@incubator.apache.org&lt;mailto:odf-users@incubator.apache.org&gt;';&#010;'odf-users-faq@incubator.apache.org&lt;mailto:odf-users-faq@incubator.apache.org&gt;'&#010;&#010;Subject: Set font per column or table in sheardsheet documents&#010;&#010;&#010;&#010;Wondering if there is a simple way to set the font across columns or tables using the Font&#010;class instead of cell by cell or the OdfStyle class. If not, what is the best way?&#010;&#010;&#010;&#010;Also, there seems to be a dead link in the Javadoc  for each instance of OdfStyle. For instance,&#010;click on the OdfStyle link for the setDefaultCellStyle method on the following page.  http://incubator.apache.org/odftoolkit/simple/document/javadoc/index.html..&#010;&#010;&#010;&#010;&#010;&#010;Thanks,&#010;&#010;&#010;&#010;Raymond&#010;&#010;&#010;&#010;&#010;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Set font per column or table in  sheardsheet documents</title>
<author><name>Svante Schubert &lt;svante.schubert@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-odf-users/201301.mbox/%3c50F917AD.6010800@gmail.com%3e"/>
<id>urn:uuid:%3c50F917AD-6010800@gmail-com%3e</id>
<updated>2013-01-18T09:36:45Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
The quick answer is, that the setting of a font is not possible at a&#010;column or table in ODF. But usability functionality might be added, at&#010;the Simple API, yet not existing.&#010;&#010;&#010;In the following how someone can double check such a question:&#010;&#010;In the definition of the ODF 1.2 XML, the RelaxNG grammar ODF 1.2 schema&#010;http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-schema.rng&#010;&#010;The following constrained for styles from columns and tables are explained&#010;&lt;group&gt;&#010;    &lt;attribute name="style:family"&gt;&#010;        &lt;value&gt;table&lt;/value&gt;&#010;    &lt;/attribute&gt;&#010;    &lt;optional&gt;&#010;        &lt;ref name="style-table-properties"/&gt;&#010;    &lt;/optional&gt;&#010;&lt;/group&gt;&#010;&lt;group&gt;&#010;    &lt;attribute name="style:family"&gt;&#010;        &lt;value&gt;table-column&lt;/value&gt;&#010;    &lt;/attribute&gt;&#010;    &lt;optional&gt;&#010;        &lt;ref name="style-table-column-properties"/&gt;&#010;    &lt;/optional&gt;&#010;&lt;/group&gt;&#010;&#010;When in doubt the family name is mentioned in the spec&#010;http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#a16_36Table_Styles&#010;or open the XML file with an editor (I use JEdit with the Archive&#010;extension to open the XML from the ZIP, using XML Indent extension to&#010;indent the XML with a keyboard shortcut)&#010;&#010;The possible style properties of a table can easily be seen at:&#010;http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#element-style_table-properties&#010;&#010;&gt;From a column at:&#010;http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#element-style_table-column-properties&#010;&#010;As you see from the references above, there is no Font style (i.e.&#010;fo:style-name&#010;&lt;http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#property-fo_font-style&gt;)&#010;is possible to be set at table/column. Q.E.D. ;)&#010;&#010;But someone could of course add some usability functionality to handle&#010;the font of the overall table.&#010;Similar like OOXML border styles given at the table itself have to be&#010;mapped to every cell in ODF.&#010;&#010;Best regards,&#010;Svante&#010;&#010;&#010;&#010;&#010;&#010;&#010;&#010;On 17.01.2013 17:11, Steele, Raymond wrote:&#010;&gt; Can anyone offer advice on this?&#010;&gt;&#010;&gt; Raymond&#010;&gt;&#010;&gt; From: Steele, Raymond&#010;&gt; Sent: Tuesday, January 15, 2013 8:53 AM&#010;&gt; To: 'odf-dev@incubator.apache.org'; 'odf-users@incubator.apache.org'; 'odf-users-faq@incubator.apache.org'&#010;&gt; Subject: Set font per column or table in sheardsheet documents&#010;&gt;&#010;&gt; Wondering if there is a simple way to set the font across columns or tables using the&#010;Font class instead of cell by cell or the OdfStyle class. If not, what is the best way?&#010;&gt;&#010;&gt; Also, there seems to be a dead link in the Javadoc  for each instance of OdfStyle. For&#010;instance, click on the OdfStyle link for the setDefaultCellStyle method on the following page.&#010; http://incubator.apache.org/odftoolkit/simple/document/javadoc/index.html..&#010;&gt;&#010;&gt;&#010;&gt; Thanks,&#010;&gt;&#010;&gt; Raymond&#010;&gt;&#010;&gt;&#010;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>RE: Set font per column or table in  sheardsheet documents</title>
<author><name>&quot;Steele, Raymond&quot; &lt;raymond.steele@lmco.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-odf-users/201301.mbox/%3cC8D3B988B58B3645A54B63274697FAD304B5DE03@HDXDSP54.us.lmco.com%3e"/>
<id>urn:uuid:%3cC8D3B988B58B3645A54B63274697FAD304B5DE03@HDXDSP54-us-lmco-com%3e</id>
<updated>2013-01-17T16:11:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Can anyone offer advice on this?&#010;&#010;Raymond&#010;&#010;From: Steele, Raymond&#010;Sent: Tuesday, January 15, 2013 8:53 AM&#010;To: 'odf-dev@incubator.apache.org'; 'odf-users@incubator.apache.org'; 'odf-users-faq@incubator.apache.org'&#010;Subject: Set font per column or table in sheardsheet documents&#010;&#010;Wondering if there is a simple way to set the font across columns or tables using the Font&#010;class instead of cell by cell or the OdfStyle class. If not, what is the best way?&#010;&#010;Also, there seems to be a dead link in the Javadoc  for each instance of OdfStyle. For instance,&#010;click on the OdfStyle link for the setDefaultCellStyle method on the following page.  http://incubator.apache.org/odftoolkit/simple/document/javadoc/index.html..&#010;&#010;&#010;Thanks,&#010;&#010;Raymond&#010;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Set font per column or table in  sheardsheet documents</title>
<author><name>&quot;Steele, Raymond&quot; &lt;raymond.steele@lmco.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-odf-users/201301.mbox/%3cC8D3B988B58B3645A54B63274697FAD304B5D950@HDXDSP54.us.lmco.com%3e"/>
<id>urn:uuid:%3cC8D3B988B58B3645A54B63274697FAD304B5D950@HDXDSP54-us-lmco-com%3e</id>
<updated>2013-01-15T15:52:41Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Wondering if there is a simple way to set the font across columns or tables using the Font&#010;class instead of cell by cell or the OdfStyle class. If not, what is the best way?&#010;&#010;Also, there seems to be a dead link in the Javadoc  for each instance of OdfStyle. For instance,&#010;click on the OdfStyle link for the setDefaultCellStyle method on the following page.  http://incubator.apache.org/odftoolkit/simple/document/javadoc/index.html..&#010;&#010;&#010;Thanks,&#010;&#010;Raymond&#010;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Getting bold text from Paragraph</title>
<author><name>Yago Quiñoy Lobariñas &lt;yquinoy@indenova.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-odf-users/201301.mbox/%3c50F54BD8.8020105@indenova.com%3e"/>
<id>urn:uuid:%3c50F54BD8-8020105@indenova-com%3e</id>
<updated>2013-01-15T12:30:16Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi again Ian.&#010;&#010;I'm sorry if my explanation wasnt clear. I'll try again.&#010;&#010;Here is my question:&#010;&#010;I have a odt file text document that contains just one paragraph with text.&#010;&#010;This paragraph just contains plain text. In this text, there's one word &#010;with bold style.&#010;&#010;Then, i open this odt text file wit SimpleApi library and i get the only &#010;one existing paragraph.&#010;&#010;When i want to get the paragraph's text, i use getTextContent() function.&#010;&#010;The text i get from this function is the correct one but for the bold &#010;text. It isn't within this string.&#010;&#010;Ok, so, your answer was to use "TextExtractor" and that worked, but i &#010;need to get every paragraph's portion to check his properties and even &#010;change them.&#010;&#010;How can i get the paragraph's portion for editing them?&#010;&#010;Regards. Yago.&#010;&#010;&#010;&#010;El 08/01/2013 15:09, Ian C escribió:&#010;&gt; Hi,&#010;&gt;&#010;&gt; check out the TextExtractor class it uses the visitor pattern to grab the&#010;&gt; text from child elements.&#010;&gt;&#010;&gt; I seem to remember a example in the cookbook.&#010;&gt;&#010;&gt; I think your bold text may be ignored because it is in a span element&#010;&gt; within a paragraph, so your code will not see it.&#010;&gt;&#010;&gt; Cheers,&#010;&gt;&#010;&gt; Ian&#010;&gt;&#010;&gt;&#010;&gt; On Tuesday, January 8, 2013, Yago Quiñoy Lobariñas &lt;yquinoy@indenova.com&gt;&#010;&gt; wrote:&#010;&gt;&gt; Hi.&#010;&gt;&gt;&#010;&gt;&gt; I've loaded a odt file in my Java code and im trying to get all document&#010;&gt; text with SimpleApi.&#010;&gt;&gt; The problem comes when some middle text is marked as bold text. SimpleApi&#010;&gt; ignores it and just shows the rest of the paragraph's text.&#010;&gt;&gt; Here is the code:&#010;&gt;&gt;&#010;&gt;&gt; {CODE}&#010;&gt;&gt; String allText = "";&#010;&gt;&gt;          try {&#010;&gt;&gt;              TextDocument odt = TextDocument.loadDocument(docPath);&#010;&gt;&gt;&#010;&gt;&gt;              Iterator&lt;Paragraph&gt; ip = odt.getParagraphIterator();&#010;&gt;&gt;&#010;&gt;&gt;              while (ip.hasNext()) {&#010;&gt;&gt;&#010;&gt;&gt;                  Paragraph paragraph = ip.next();&#010;&gt;&gt;&#010;&gt;&gt;                  //All text in paragraph&#010;&gt;&gt;                  allText = paragraph.getTextContent();&#010;&gt;&gt;                  System.out.println(allText);&#010;&gt;&gt;&#010;&gt;&gt;                  //I'm checking paragraph to ensure that there is my bold&#010;&gt; text.&#010;&gt;&gt;                  TextParagraphElementBase domp = paragraph.getOdfElement();&#010;&gt;&gt;                  System.out.println(domp.toString());&#010;&gt;&gt;&#010;&gt;&gt;              }&#010;&gt;&gt;&#010;&gt;&gt;          } catch (Exception ex) {&#010;&gt;&gt;              ex.printStackTrace();&#010;&gt;&gt;          }&#010;&gt;&gt; {CODE:END}&#010;&gt;&gt;&#010;&gt;&gt; An here is the output.&#010;&gt;&gt;&#010;&gt;&gt; aaaaaaaaaaaaaacccccccccccccc&#010;&gt;&gt; &lt;text:p text:style-name="Standard"&gt;aaaaaaaaaaaaaa&lt;text:span&#010;&gt; text:style-name="T1"&gt;bbbbbbbbbbbbbbbbb&lt;/text:span&gt;cccccccccccccc&lt;/text:p&gt;&#010;&gt;&gt; Thanks&#010;&gt;&gt; --&#010;&gt;&gt; Yago Quiñoy Lobariñas&#010;&gt;&gt; Área de desarrollo&#010;&gt;&gt; INDENOVA S.L.&#010;&gt;&gt; P.I. Vara de Quart&#010;&gt;&gt; C/Dels Traginers 14, 2º planta izq.&#010;&gt;&gt; 46014 Valencia&#010;&gt;&gt; Tel.(34) 96 381 99 47&#010;&gt;&gt;&#010;&gt;&gt; yquinoy@indenova.com &lt;mailto:yquinoy@indenova.com&gt;&#010;&gt;&gt; www.indenova.com &lt;http://www.indenova.com/&gt;&#010;&gt;&gt;&#010;&gt;&gt; *RESPETEMOS EL MEDIO AMBIENTE*:¿Necesita realmente imprimir este email?&#010;&gt;&gt; *PLEASE RESPECT THE ENVIRONMENT*: Do you really need to print this email?&#010;&gt;&gt; *CONFIDENCIALIDAD*: Este email es confidencial y para uso exclusivo de su&#010;&gt; destinatario.&#010;&gt;&gt; *CONFIDENTIALITY*: This email is confidential and for the exclusive use&#010;&gt; of its addressee.&#010;&gt;&gt;&#010;&gt; ---------------------------------------------------------------------------------------------------&#010;&gt;&gt; Descargue el visor gratuito de archivos firmados electrónicamente eSigna&#010;&gt; Viewer:&#010;&gt;&gt; http://www.indenova.com/eSignaViewer.php&#010;&gt;&gt;&#010;&gt; ---------------------------------------------------------------------------------------------------&#010;&gt;&gt;&#010;&gt;&gt;&#010;&#010;&#010;-- &#010;Yago Quiñoy Lobariñas&#010;Área de desarrollo&#010;INDENOVA S.L.&#010;P.I. Vara de Quart&#010;C/Dels Traginers 14, 2º planta izq.&#010;46014 Valencia&#010;Tel.(34) 96 381 99 47&#010;&#010;yquinoy@indenova.com &lt;mailto:yquinoy@indenova.com&gt;&#010;www.indenova.com &lt;http://www.indenova.com/&gt;&#010;&#010;*RESPETEMOS EL MEDIO AMBIENTE*:¿Necesita realmente imprimir este email?&#010;*PLEASE RESPECT THE ENVIRONMENT*: Do you really need to print this email?&#010;*CONFIDENCIALIDAD*: Este email es confidencial y para uso exclusivo de &#010;su destinatario.&#010;*CONFIDENTIALITY*: This email is confidential and for the exclusive use &#010;of its addressee.&#010;&#010;---------------------------------------------------------------------------------------------------&#010;Descargue el visor gratuito de archivos firmados electrónicamente eSigna &#010;Viewer:&#010;http://www.indenova.com/eSignaViewer.php&#010;---------------------------------------------------------------------------------------------------&#010;&#010;&#010;&#010;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Getting bold text from Paragraph</title>
<author><name>Ian C &lt;ian@amham.net&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-odf-users/201301.mbox/%3cCAKw-CVKBYuPY0GvKzRhBCfG2G2QhchXPvObWFp9i=x6nUWgVCQ@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCAKw-CVKBYuPY0GvKzRhBCfG2G2QhchXPvObWFp9i=x6nUWgVCQ@mail-gmail-com%3e</id>
<updated>2013-01-09T09:13:59Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Yago,&#010;&#010;not sure I really understand. But within the code of the ODFToolkit&#010;you can see how the TextExtractor was done.&#010;There are another couple of extractors too. One to get the Editable&#010;text which visits more element types.&#010;&#010;They use the Visitor pattern.&#010;&#010;You could create your own specialised extractor?&#010;Which looks at / filters the elements that are visited based on their&#010;properties.&#010;&#010;I am not aware of anything in the Simple API that will do it. One of&#010;the other guys may know more.&#010;I am pretty new around here myself and am still getting up to speed.&#010;&#010;Cheers,&#010;&#010;Ian&#010;&#010;&#010;On Wed, Jan 9, 2013 at 3:38 PM, Yago Quiñoy Lobariñas&#010;&lt;yquinoy@indenova.com&gt; wrote:&#010;&gt; Thanks Ian. I really appreciate.&#010;&gt;&#010;&gt; I'll explain what i pretend to do and that'll save us some time :)&#010;&gt;&#010;&gt; I want to access to the different elements in an odt file in Java and also&#010;&gt; access their properties. Right now, with SimpleApi i can do that. The&#010;&gt; problem came with bold text in a paragraph.&#010;&gt;&#010;&gt; To put an example that what i'm looking for, i would like to work with Odf&#010;&gt; Toolkit like Apache POI library.&#010;&gt;&#010;&gt; For this very example, in Apache POI, each paragraph have runs (group of&#010;&gt; text that have the same properties) and i can acces his properties to check,&#010;&gt; for example, if it's bold or it isnt.&#010;&gt;&#010;&gt; There's a way to work with OdfToolkit in the same way?&#010;&gt;&#010;&gt; Really gratefull for your help. Yago.&#010;&gt;&#010;&gt;&#010;&gt; El 09/01/2013 2:06, Ian C escribió:&#010;&gt;&#010;&gt;&gt; Hi Yago,&#010;&gt;&gt;&#010;&gt;&gt; I'm easy just ask away. Either in new email or this thread.&#010;&gt;&gt;&#010;&gt;&gt; Cheers,&#010;&gt;&gt;&#010;&gt;&gt; Ian&#010;&gt;&gt;&#010;&gt;&gt; On Tue, Jan 8, 2013 at 11:40 PM, Yago Quiñoy Lobariñas&#010;&gt;&gt; &lt;yquinoy@indenova.com&gt; wrote:&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt; Hi Ian.&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt; You were right with TextExtractor. This class gets all text even if it is&#010;&gt;&gt;&gt; in&#010;&gt;&gt;&gt; span tags.&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt; I have another question and i dont know if i have to do them in a new&#010;&gt;&gt;&gt; mail.&#010;&gt;&gt;&gt; Do i have to?&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt; Thanks. Yago.&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt; El 08/01/2013 15:09, Ian C escribió:&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt; Hi,&#010;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt; check out the TextExtractor class it uses the visitor pattern to grab&#010;&gt;&gt;&gt;&gt; the&#010;&gt;&gt;&gt;&gt; text from child elements.&#010;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt; I seem to remember a example in the cookbook.&#010;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt; I think your bold text may be ignored because it is in a span element&#010;&gt;&gt;&gt;&gt; within a paragraph, so your code will not see it.&#010;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt; Cheers,&#010;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt; Ian&#010;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt; On Tuesday, January 8, 2013, Yago Quiñoy Lobariñas&#010;&gt;&gt;&gt;&gt; &lt;yquinoy@indenova.com&gt;&#010;&gt;&gt;&gt;&gt; wrote:&#010;&gt;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt;&gt; Hi.&#010;&gt;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt;&gt; I've loaded a odt file in my Java code and im trying to get all&#010;&gt;&gt;&gt;&gt;&gt; document&#010;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt; text with SimpleApi.&#010;&gt;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt;&gt; The problem comes when some middle text is marked as bold text.&#010;&gt;&gt;&gt;&gt;&gt; SimpleApi&#010;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt; ignores it and just shows the rest of the paragraph's text.&#010;&gt;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt;&gt; Here is the code:&#010;&gt;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt;&gt; {CODE}&#010;&gt;&gt;&gt;&gt;&gt; String allText = "";&#010;&gt;&gt;&gt;&gt;&gt;           try {&#010;&gt;&gt;&gt;&gt;&gt;               TextDocument odt = TextDocument.loadDocument(docPath);&#010;&gt;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt;&gt;               Iterator&lt;Paragraph&gt; ip = odt.getParagraphIterator();&#010;&gt;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt;&gt;               while (ip.hasNext()) {&#010;&gt;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt;&gt;                   Paragraph paragraph = ip.next();&#010;&gt;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt;&gt;                   //All text in paragraph&#010;&gt;&gt;&gt;&gt;&gt;                   allText = paragraph.getTextContent();&#010;&gt;&gt;&gt;&gt;&gt;                   System.out.println(allText);&#010;&gt;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt;&gt;                   //I'm checking paragraph to ensure that there is my&#010;&gt;&gt;&gt;&gt;&gt; bold&#010;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt; text.&#010;&gt;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt;&gt;                   TextParagraphElementBase domp =&#010;&gt;&gt;&gt;&gt;&gt; paragraph.getOdfElement();&#010;&gt;&gt;&gt;&gt;&gt;                   System.out.println(domp.toString());&#010;&gt;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt;&gt;               }&#010;&gt;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt;&gt;           } catch (Exception ex) {&#010;&gt;&gt;&gt;&gt;&gt;               ex.printStackTrace();&#010;&gt;&gt;&gt;&gt;&gt;           }&#010;&gt;&gt;&gt;&gt;&gt; {CODE:END}&#010;&gt;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt;&gt; An here is the output.&#010;&gt;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt;&gt; aaaaaaaaaaaaaacccccccccccccc&#010;&gt;&gt;&gt;&gt;&gt; &lt;text:p text:style-name="Standard"&gt;aaaaaaaaaaaaaa&lt;text:span&#010;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt; text:style-name="T1"&gt;bbbbbbbbbbbbbbbbb&lt;/text:span&gt;cccccccccccccc&lt;/text:p&gt;&#010;&gt;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt;&gt; Thanks&#010;&gt;&gt;&gt;&gt;&gt; --&#010;&gt;&gt;&gt;&gt;&gt; Yago Quiñoy Lobariñas&#010;&gt;&gt;&gt;&gt;&gt; Área de desarrollo&#010;&gt;&gt;&gt;&gt;&gt; INDENOVA S.L.&#010;&gt;&gt;&gt;&gt;&gt; P.I. Vara de Quart&#010;&gt;&gt;&gt;&gt;&gt; C/Dels Traginers 14, 2º planta izq.&#010;&gt;&gt;&gt;&gt;&gt; 46014 Valencia&#010;&gt;&gt;&gt;&gt;&gt; Tel.(34) 96 381 99 47&#010;&gt;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt;&gt; yquinoy@indenova.com &lt;mailto:yquinoy@indenova.com&gt;&#010;&gt;&gt;&gt;&gt;&gt; www.indenova.com &lt;http://www.indenova.com/&gt;&#010;&gt;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt;&gt; *RESPETEMOS EL MEDIO AMBIENTE*:¿Necesita realmente imprimir este email?&#010;&gt;&gt;&gt;&gt;&gt; *PLEASE RESPECT THE ENVIRONMENT*: Do you really need to print this&#010;&gt;&gt;&gt;&gt;&gt; email?&#010;&gt;&gt;&gt;&gt;&gt; *CONFIDENCIALIDAD*: Este email es confidencial y para uso exclusivo de&#010;&gt;&gt;&gt;&gt;&gt; su&#010;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt; destinatario.&#010;&gt;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt;&gt; *CONFIDENTIALITY*: This email is confidential and for the exclusive use&#010;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt; of its addressee.&#010;&gt;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------------------------------------&#010;&gt;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt;&gt; Descargue el visor gratuito de archivos firmados electrónicamente&#010;&gt;&gt;&gt;&gt;&gt; eSigna&#010;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt; Viewer:&#010;&gt;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt;&gt; http://www.indenova.com/eSignaViewer.php&#010;&gt;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt; ---------------------------------------------------------------------------------------------------&#010;&gt;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt; --&#010;&gt;&gt;&gt; Yago Quiñoy Lobariñas&#010;&gt;&gt;&gt; Área de desarrollo&#010;&gt;&gt;&gt; INDENOVA S.L.&#010;&gt;&gt;&gt; P.I. Vara de Quart&#010;&gt;&gt;&gt; C/Dels Traginers 14, 2º planta izq.&#010;&gt;&gt;&gt; 46014 Valencia&#010;&gt;&gt;&gt; Tel.(34) 96 381 99 47&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt; yquinoy@indenova.com &lt;mailto:yquinoy@indenova.com&gt;&#010;&gt;&gt;&gt; www.indenova.com &lt;http://www.indenova.com/&gt;&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt; *RESPETEMOS EL MEDIO AMBIENTE*:¿Necesita realmente imprimir este email?&#010;&gt;&gt;&gt; *PLEASE RESPECT THE ENVIRONMENT*: Do you really need to print this email?&#010;&gt;&gt;&gt; *CONFIDENCIALIDAD*: Este email es confidencial y para uso exclusivo de su&#010;&gt;&gt;&gt; destinatario.&#010;&gt;&gt;&gt; *CONFIDENTIALITY*: This email is confidential and for the exclusive use&#010;&gt;&gt;&gt; of&#010;&gt;&gt;&gt; its addressee.&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt; ---------------------------------------------------------------------------------------------------&#010;&gt;&gt;&gt; Descargue el visor gratuito de archivos firmados electrónicamente eSigna&#010;&gt;&gt;&gt; Viewer:&#010;&gt;&gt;&gt; http://www.indenova.com/eSignaViewer.php&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt; ---------------------------------------------------------------------------------------------------&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&#010;&gt;&gt;&#010;&gt;&gt;&#010;&gt;&#010;&gt;&#010;&gt; --&#010;&gt; Yago Quiñoy Lobariñas&#010;&gt; Área de desarrollo&#010;&gt; INDENOVA S.L.&#010;&gt; P.I. Vara de Quart&#010;&gt; C/Dels Traginers 14, 2º planta izq.&#010;&gt; 46014 Valencia&#010;&gt; Tel.(34) 96 381 99 47&#010;&gt;&#010;&gt; yquinoy@indenova.com &lt;mailto:yquinoy@indenova.com&gt;&#010;&gt; www.indenova.com &lt;http://www.indenova.com/&gt;&#010;&gt;&#010;&gt; *RESPETEMOS EL MEDIO AMBIENTE*:¿Necesita realmente imprimir este email?&#010;&gt; *PLEASE RESPECT THE ENVIRONMENT*: Do you really need to print this email?&#010;&gt; *CONFIDENCIALIDAD*: Este email es confidencial y para uso exclusivo de su&#010;&gt; destinatario.&#010;&gt; *CONFIDENTIALITY*: This email is confidential and for the exclusive use of&#010;&gt; its addressee.&#010;&gt;&#010;&gt; ---------------------------------------------------------------------------------------------------&#010;&gt; Descargue el visor gratuito de archivos firmados electrónicamente eSigna&#010;&gt; Viewer:&#010;&gt; http://www.indenova.com/eSignaViewer.php&#010;&gt; ---------------------------------------------------------------------------------------------------&#010;&gt;&#010;&gt;&#010;&#010;&#010;&#010;-- &#010;Cheers,&#010;&#010;Ian C&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Getting bold text from Paragraph</title>
<author><name>Yago Quiñoy Lobariñas &lt;yquinoy@indenova.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-odf-users/201301.mbox/%3c50ED1E6A.5040904@indenova.com%3e"/>
<id>urn:uuid:%3c50ED1E6A-5040904@indenova-com%3e</id>
<updated>2013-01-09T07:38:18Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Thanks Ian. I really appreciate.&#010;&#010;I'll explain what i pretend to do and that'll save us some time :)&#010;&#010;I want to access to the different elements in an odt file in Java and &#010;also access their properties. Right now, with SimpleApi i can do that. &#010;The problem came with bold text in a paragraph.&#010;&#010;To put an example that what i'm looking for, i would like to work with &#010;Odf Toolkit like Apache POI library.&#010;&#010;For this very example, in Apache POI, each paragraph have runs (group of &#010;text that have the same properties) and i can acces his properties to &#010;check, for example, if it's bold or it isnt.&#010;&#010;There's a way to work with OdfToolkit in the same way?&#010;&#010;Really gratefull for your help. Yago.&#010;&#010;&#010;El 09/01/2013 2:06, Ian C escribió:&#010;&gt; Hi Yago,&#010;&gt;&#010;&gt; I'm easy just ask away. Either in new email or this thread.&#010;&gt;&#010;&gt; Cheers,&#010;&gt;&#010;&gt; Ian&#010;&gt;&#010;&gt; On Tue, Jan 8, 2013 at 11:40 PM, Yago Quiñoy Lobariñas&#010;&gt; &lt;yquinoy@indenova.com&gt; wrote:&#010;&gt;&gt; Hi Ian.&#010;&gt;&gt;&#010;&gt;&gt; You were right with TextExtractor. This class gets all text even if it is in&#010;&gt;&gt; span tags.&#010;&gt;&gt;&#010;&gt;&gt; I have another question and i dont know if i have to do them in a new mail.&#010;&gt;&gt; Do i have to?&#010;&gt;&gt;&#010;&gt;&gt; Thanks. Yago.&#010;&gt;&gt;&#010;&gt;&gt; El 08/01/2013 15:09, Ian C escribió:&#010;&gt;&gt;&#010;&gt;&gt;&gt; Hi,&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt; check out the TextExtractor class it uses the visitor pattern to grab the&#010;&gt;&gt;&gt; text from child elements.&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt; I seem to remember a example in the cookbook.&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt; I think your bold text may be ignored because it is in a span element&#010;&gt;&gt;&gt; within a paragraph, so your code will not see it.&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt; Cheers,&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt; Ian&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt; On Tuesday, January 8, 2013, Yago Quiñoy Lobariñas &lt;yquinoy@indenova.com&gt;&#010;&gt;&gt;&gt; wrote:&#010;&gt;&gt;&gt;&gt; Hi.&#010;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt; I've loaded a odt file in my Java code and im trying to get all document&#010;&gt;&gt;&gt; text with SimpleApi.&#010;&gt;&gt;&gt;&gt; The problem comes when some middle text is marked as bold text. SimpleApi&#010;&gt;&gt;&gt; ignores it and just shows the rest of the paragraph's text.&#010;&gt;&gt;&gt;&gt; Here is the code:&#010;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt; {CODE}&#010;&gt;&gt;&gt;&gt; String allText = "";&#010;&gt;&gt;&gt;&gt;           try {&#010;&gt;&gt;&gt;&gt;               TextDocument odt = TextDocument.loadDocument(docPath);&#010;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt;               Iterator&lt;Paragraph&gt; ip = odt.getParagraphIterator();&#010;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt;               while (ip.hasNext()) {&#010;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt;                   Paragraph paragraph = ip.next();&#010;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt;                   //All text in paragraph&#010;&gt;&gt;&gt;&gt;                   allText = paragraph.getTextContent();&#010;&gt;&gt;&gt;&gt;                   System.out.println(allText);&#010;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt;                   //I'm checking paragraph to ensure that there is my bold&#010;&gt;&gt;&gt; text.&#010;&gt;&gt;&gt;&gt;                   TextParagraphElementBase domp =&#010;&gt;&gt;&gt;&gt; paragraph.getOdfElement();&#010;&gt;&gt;&gt;&gt;                   System.out.println(domp.toString());&#010;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt;               }&#010;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt;           } catch (Exception ex) {&#010;&gt;&gt;&gt;&gt;               ex.printStackTrace();&#010;&gt;&gt;&gt;&gt;           }&#010;&gt;&gt;&gt;&gt; {CODE:END}&#010;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt; An here is the output.&#010;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt; aaaaaaaaaaaaaacccccccccccccc&#010;&gt;&gt;&gt;&gt; &lt;text:p text:style-name="Standard"&gt;aaaaaaaaaaaaaa&lt;text:span&#010;&gt;&gt;&gt; text:style-name="T1"&gt;bbbbbbbbbbbbbbbbb&lt;/text:span&gt;cccccccccccccc&lt;/text:p&gt;&#010;&gt;&gt;&gt;&gt; Thanks&#010;&gt;&gt;&gt;&gt; --&#010;&gt;&gt;&gt;&gt; Yago Quiñoy Lobariñas&#010;&gt;&gt;&gt;&gt; Área de desarrollo&#010;&gt;&gt;&gt;&gt; INDENOVA S.L.&#010;&gt;&gt;&gt;&gt; P.I. Vara de Quart&#010;&gt;&gt;&gt;&gt; C/Dels Traginers 14, 2º planta izq.&#010;&gt;&gt;&gt;&gt; 46014 Valencia&#010;&gt;&gt;&gt;&gt; Tel.(34) 96 381 99 47&#010;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt; yquinoy@indenova.com &lt;mailto:yquinoy@indenova.com&gt;&#010;&gt;&gt;&gt;&gt; www.indenova.com &lt;http://www.indenova.com/&gt;&#010;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt; *RESPETEMOS EL MEDIO AMBIENTE*:¿Necesita realmente imprimir este email?&#010;&gt;&gt;&gt;&gt; *PLEASE RESPECT THE ENVIRONMENT*: Do you really need to print this email?&#010;&gt;&gt;&gt;&gt; *CONFIDENCIALIDAD*: Este email es confidencial y para uso exclusivo de su&#010;&gt;&gt;&gt; destinatario.&#010;&gt;&gt;&gt;&gt; *CONFIDENTIALITY*: This email is confidential and for the exclusive use&#010;&gt;&gt;&gt; of its addressee.&#010;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt; ---------------------------------------------------------------------------------------------------&#010;&gt;&gt;&gt;&gt; Descargue el visor gratuito de archivos firmados electrónicamente eSigna&#010;&gt;&gt;&gt; Viewer:&#010;&gt;&gt;&gt;&gt; http://www.indenova.com/eSignaViewer.php&#010;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt; ---------------------------------------------------------------------------------------------------&#010;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&gt;&#010;&gt;&gt;&#010;&gt;&gt; --&#010;&gt;&gt; Yago Quiñoy Lobariñas&#010;&gt;&gt; Área de desarrollo&#010;&gt;&gt; INDENOVA S.L.&#010;&gt;&gt; P.I. Vara de Quart&#010;&gt;&gt; C/Dels Traginers 14, 2º planta izq.&#010;&gt;&gt; 46014 Valencia&#010;&gt;&gt; Tel.(34) 96 381 99 47&#010;&gt;&gt;&#010;&gt;&gt; yquinoy@indenova.com &lt;mailto:yquinoy@indenova.com&gt;&#010;&gt;&gt; www.indenova.com &lt;http://www.indenova.com/&gt;&#010;&gt;&gt;&#010;&gt;&gt; *RESPETEMOS EL MEDIO AMBIENTE*:¿Necesita realmente imprimir este email?&#010;&gt;&gt; *PLEASE RESPECT THE ENVIRONMENT*: Do you really need to print this email?&#010;&gt;&gt; *CONFIDENCIALIDAD*: Este email es confidencial y para uso exclusivo de su&#010;&gt;&gt; destinatario.&#010;&gt;&gt; *CONFIDENTIALITY*: This email is confidential and for the exclusive use of&#010;&gt;&gt; its addressee.&#010;&gt;&gt;&#010;&gt;&gt; ---------------------------------------------------------------------------------------------------&#010;&gt;&gt; Descargue el visor gratuito de archivos firmados electrónicamente eSigna&#010;&gt;&gt; Viewer:&#010;&gt;&gt; http://www.indenova.com/eSignaViewer.php&#010;&gt;&gt; ---------------------------------------------------------------------------------------------------&#010;&gt;&gt;&#010;&gt;&gt;&#010;&gt;&#010;&gt;&#010;&#010;&#010;-- &#010;Yago Quiñoy Lobariñas&#010;Área de desarrollo&#010;INDENOVA S.L.&#010;P.I. Vara de Quart&#010;C/Dels Traginers 14, 2º planta izq.&#010;46014 Valencia&#010;Tel.(34) 96 381 99 47&#010;&#010;yquinoy@indenova.com &lt;mailto:yquinoy@indenova.com&gt;&#010;www.indenova.com &lt;http://www.indenova.com/&gt;&#010;&#010;*RESPETEMOS EL MEDIO AMBIENTE*:¿Necesita realmente imprimir este email?&#010;*PLEASE RESPECT THE ENVIRONMENT*: Do you really need to print this email?&#010;*CONFIDENCIALIDAD*: Este email es confidencial y para uso exclusivo de &#010;su destinatario.&#010;*CONFIDENTIALITY*: This email is confidential and for the exclusive use &#010;of its addressee.&#010;&#010;---------------------------------------------------------------------------------------------------&#010;Descargue el visor gratuito de archivos firmados electrónicamente eSigna &#010;Viewer:&#010;http://www.indenova.com/eSignaViewer.php&#010;---------------------------------------------------------------------------------------------------&#010;&#010;&#010;&#010;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Getting bold text from Paragraph</title>
<author><name>Ian C &lt;ian@amham.net&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-odf-users/201301.mbox/%3cCAKw-CVLURe5gjK95Su2P=nX440MyBADKhrGWqPHLuBcOHdr1sQ@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCAKw-CVLURe5gjK95Su2P=nX440MyBADKhrGWqPHLuBcOHdr1sQ@mail-gmail-com%3e</id>
<updated>2013-01-09T01:06:47Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Yago,&#010;&#010;I'm easy just ask away. Either in new email or this thread.&#010;&#010;Cheers,&#010;&#010;Ian&#010;&#010;On Tue, Jan 8, 2013 at 11:40 PM, Yago Quiñoy Lobariñas&#010;&lt;yquinoy@indenova.com&gt; wrote:&#010;&gt; Hi Ian.&#010;&gt;&#010;&gt; You were right with TextExtractor. This class gets all text even if it is in&#010;&gt; span tags.&#010;&gt;&#010;&gt; I have another question and i dont know if i have to do them in a new mail.&#010;&gt; Do i have to?&#010;&gt;&#010;&gt; Thanks. Yago.&#010;&gt;&#010;&gt; El 08/01/2013 15:09, Ian C escribió:&#010;&gt;&#010;&gt;&gt; Hi,&#010;&gt;&gt;&#010;&gt;&gt; check out the TextExtractor class it uses the visitor pattern to grab the&#010;&gt;&gt; text from child elements.&#010;&gt;&gt;&#010;&gt;&gt; I seem to remember a example in the cookbook.&#010;&gt;&gt;&#010;&gt;&gt; I think your bold text may be ignored because it is in a span element&#010;&gt;&gt; within a paragraph, so your code will not see it.&#010;&gt;&gt;&#010;&gt;&gt; Cheers,&#010;&gt;&gt;&#010;&gt;&gt; Ian&#010;&gt;&gt;&#010;&gt;&gt;&#010;&gt;&gt; On Tuesday, January 8, 2013, Yago Quiñoy Lobariñas &lt;yquinoy@indenova.com&gt;&#010;&gt;&gt; wrote:&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt; Hi.&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt; I've loaded a odt file in my Java code and im trying to get all document&#010;&gt;&gt;&#010;&gt;&gt; text with SimpleApi.&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt; The problem comes when some middle text is marked as bold text. SimpleApi&#010;&gt;&gt;&#010;&gt;&gt; ignores it and just shows the rest of the paragraph's text.&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt; Here is the code:&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt; {CODE}&#010;&gt;&gt;&gt; String allText = "";&#010;&gt;&gt;&gt;          try {&#010;&gt;&gt;&gt;              TextDocument odt = TextDocument.loadDocument(docPath);&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt;              Iterator&lt;Paragraph&gt; ip = odt.getParagraphIterator();&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt;              while (ip.hasNext()) {&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt;                  Paragraph paragraph = ip.next();&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt;                  //All text in paragraph&#010;&gt;&gt;&gt;                  allText = paragraph.getTextContent();&#010;&gt;&gt;&gt;                  System.out.println(allText);&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt;                  //I'm checking paragraph to ensure that there is my bold&#010;&gt;&gt;&#010;&gt;&gt; text.&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt;                  TextParagraphElementBase domp =&#010;&gt;&gt;&gt; paragraph.getOdfElement();&#010;&gt;&gt;&gt;                  System.out.println(domp.toString());&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt;              }&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt;          } catch (Exception ex) {&#010;&gt;&gt;&gt;              ex.printStackTrace();&#010;&gt;&gt;&gt;          }&#010;&gt;&gt;&gt; {CODE:END}&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt; An here is the output.&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt; aaaaaaaaaaaaaacccccccccccccc&#010;&gt;&gt;&gt; &lt;text:p text:style-name="Standard"&gt;aaaaaaaaaaaaaa&lt;text:span&#010;&gt;&gt;&#010;&gt;&gt; text:style-name="T1"&gt;bbbbbbbbbbbbbbbbb&lt;/text:span&gt;cccccccccccccc&lt;/text:p&gt;&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt; Thanks&#010;&gt;&gt;&gt; --&#010;&gt;&gt;&gt; Yago Quiñoy Lobariñas&#010;&gt;&gt;&gt; Área de desarrollo&#010;&gt;&gt;&gt; INDENOVA S.L.&#010;&gt;&gt;&gt; P.I. Vara de Quart&#010;&gt;&gt;&gt; C/Dels Traginers 14, 2º planta izq.&#010;&gt;&gt;&gt; 46014 Valencia&#010;&gt;&gt;&gt; Tel.(34) 96 381 99 47&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt; yquinoy@indenova.com &lt;mailto:yquinoy@indenova.com&gt;&#010;&gt;&gt;&gt; www.indenova.com &lt;http://www.indenova.com/&gt;&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt; *RESPETEMOS EL MEDIO AMBIENTE*:¿Necesita realmente imprimir este email?&#010;&gt;&gt;&gt; *PLEASE RESPECT THE ENVIRONMENT*: Do you really need to print this email?&#010;&gt;&gt;&gt; *CONFIDENCIALIDAD*: Este email es confidencial y para uso exclusivo de su&#010;&gt;&gt;&#010;&gt;&gt; destinatario.&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt; *CONFIDENTIALITY*: This email is confidential and for the exclusive use&#010;&gt;&gt;&#010;&gt;&gt; of its addressee.&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&#010;&gt;&gt;&#010;&gt;&gt; ---------------------------------------------------------------------------------------------------&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt; Descargue el visor gratuito de archivos firmados electrónicamente eSigna&#010;&gt;&gt;&#010;&gt;&gt; Viewer:&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt; http://www.indenova.com/eSignaViewer.php&#010;&gt;&gt;&gt;&#010;&gt;&gt;&#010;&gt;&gt; ---------------------------------------------------------------------------------------------------&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&#010;&gt;&gt;&gt;&#010;&gt;&#010;&gt;&#010;&gt; --&#010;&gt; Yago Quiñoy Lobariñas&#010;&gt; Área de desarrollo&#010;&gt; INDENOVA S.L.&#010;&gt; P.I. Vara de Quart&#010;&gt; C/Dels Traginers 14, 2º planta izq.&#010;&gt; 46014 Valencia&#010;&gt; Tel.(34) 96 381 99 47&#010;&gt;&#010;&gt; yquinoy@indenova.com &lt;mailto:yquinoy@indenova.com&gt;&#010;&gt; www.indenova.com &lt;http://www.indenova.com/&gt;&#010;&gt;&#010;&gt; *RESPETEMOS EL MEDIO AMBIENTE*:¿Necesita realmente imprimir este email?&#010;&gt; *PLEASE RESPECT THE ENVIRONMENT*: Do you really need to print this email?&#010;&gt; *CONFIDENCIALIDAD*: Este email es confidencial y para uso exclusivo de su&#010;&gt; destinatario.&#010;&gt; *CONFIDENTIALITY*: This email is confidential and for the exclusive use of&#010;&gt; its addressee.&#010;&gt;&#010;&gt; ---------------------------------------------------------------------------------------------------&#010;&gt; Descargue el visor gratuito de archivos firmados electrónicamente eSigna&#010;&gt; Viewer:&#010;&gt; http://www.indenova.com/eSignaViewer.php&#010;&gt; ---------------------------------------------------------------------------------------------------&#010;&gt;&#010;&gt;&#010;&#010;&#010;&#010;-- &#010;Cheers,&#010;&#010;Ian C&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Getting bold text from Paragraph</title>
<author><name>Yago Quiñoy Lobariñas &lt;yquinoy@indenova.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-odf-users/201301.mbox/%3c50EC3E06.801@indenova.com%3e"/>
<id>urn:uuid:%3c50EC3E06-801@indenova-com%3e</id>
<updated>2013-01-08T15:40:54Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Ian.&#010;&#010;You were right with TextExtractor. This class gets all text even if it &#010;is in span tags.&#010;&#010;I have another question and i dont know if i have to do them in a new &#010;mail. Do i have to?&#010;&#010;Thanks. Yago.&#010;&#010;El 08/01/2013 15:09, Ian C escribió:&#010;&gt; Hi,&#010;&gt;&#010;&gt; check out the TextExtractor class it uses the visitor pattern to grab the&#010;&gt; text from child elements.&#010;&gt;&#010;&gt; I seem to remember a example in the cookbook.&#010;&gt;&#010;&gt; I think your bold text may be ignored because it is in a span element&#010;&gt; within a paragraph, so your code will not see it.&#010;&gt;&#010;&gt; Cheers,&#010;&gt;&#010;&gt; Ian&#010;&gt;&#010;&gt;&#010;&gt; On Tuesday, January 8, 2013, Yago Quiñoy Lobariñas &lt;yquinoy@indenova.com&gt;&#010;&gt; wrote:&#010;&gt;&gt; Hi.&#010;&gt;&gt;&#010;&gt;&gt; I've loaded a odt file in my Java code and im trying to get all document&#010;&gt; text with SimpleApi.&#010;&gt;&gt; The problem comes when some middle text is marked as bold text. SimpleApi&#010;&gt; ignores it and just shows the rest of the paragraph's text.&#010;&gt;&gt; Here is the code:&#010;&gt;&gt;&#010;&gt;&gt; {CODE}&#010;&gt;&gt; String allText = "";&#010;&gt;&gt;          try {&#010;&gt;&gt;              TextDocument odt = TextDocument.loadDocument(docPath);&#010;&gt;&gt;&#010;&gt;&gt;              Iterator&lt;Paragraph&gt; ip = odt.getParagraphIterator();&#010;&gt;&gt;&#010;&gt;&gt;              while (ip.hasNext()) {&#010;&gt;&gt;&#010;&gt;&gt;                  Paragraph paragraph = ip.next();&#010;&gt;&gt;&#010;&gt;&gt;                  //All text in paragraph&#010;&gt;&gt;                  allText = paragraph.getTextContent();&#010;&gt;&gt;                  System.out.println(allText);&#010;&gt;&gt;&#010;&gt;&gt;                  //I'm checking paragraph to ensure that there is my bold&#010;&gt; text.&#010;&gt;&gt;                  TextParagraphElementBase domp = paragraph.getOdfElement();&#010;&gt;&gt;                  System.out.println(domp.toString());&#010;&gt;&gt;&#010;&gt;&gt;              }&#010;&gt;&gt;&#010;&gt;&gt;          } catch (Exception ex) {&#010;&gt;&gt;              ex.printStackTrace();&#010;&gt;&gt;          }&#010;&gt;&gt; {CODE:END}&#010;&gt;&gt;&#010;&gt;&gt; An here is the output.&#010;&gt;&gt;&#010;&gt;&gt; aaaaaaaaaaaaaacccccccccccccc&#010;&gt;&gt; &lt;text:p text:style-name="Standard"&gt;aaaaaaaaaaaaaa&lt;text:span&#010;&gt; text:style-name="T1"&gt;bbbbbbbbbbbbbbbbb&lt;/text:span&gt;cccccccccccccc&lt;/text:p&gt;&#010;&gt;&gt; Thanks&#010;&gt;&gt; --&#010;&gt;&gt; Yago Quiñoy Lobariñas&#010;&gt;&gt; Área de desarrollo&#010;&gt;&gt; INDENOVA S.L.&#010;&gt;&gt; P.I. Vara de Quart&#010;&gt;&gt; C/Dels Traginers 14, 2º planta izq.&#010;&gt;&gt; 46014 Valencia&#010;&gt;&gt; Tel.(34) 96 381 99 47&#010;&gt;&gt;&#010;&gt;&gt; yquinoy@indenova.com &lt;mailto:yquinoy@indenova.com&gt;&#010;&gt;&gt; www.indenova.com &lt;http://www.indenova.com/&gt;&#010;&gt;&gt;&#010;&gt;&gt; *RESPETEMOS EL MEDIO AMBIENTE*:¿Necesita realmente imprimir este email?&#010;&gt;&gt; *PLEASE RESPECT THE ENVIRONMENT*: Do you really need to print this email?&#010;&gt;&gt; *CONFIDENCIALIDAD*: Este email es confidencial y para uso exclusivo de su&#010;&gt; destinatario.&#010;&gt;&gt; *CONFIDENTIALITY*: This email is confidential and for the exclusive use&#010;&gt; of its addressee.&#010;&gt;&gt;&#010;&gt; ---------------------------------------------------------------------------------------------------&#010;&gt;&gt; Descargue el visor gratuito de archivos firmados electrónicamente eSigna&#010;&gt; Viewer:&#010;&gt;&gt; http://www.indenova.com/eSignaViewer.php&#010;&gt;&gt;&#010;&gt; ---------------------------------------------------------------------------------------------------&#010;&gt;&gt;&#010;&gt;&gt;&#010;&#010;&#010;-- &#010;Yago Quiñoy Lobariñas&#010;Área de desarrollo&#010;INDENOVA S.L.&#010;P.I. Vara de Quart&#010;C/Dels Traginers 14, 2º planta izq.&#010;46014 Valencia&#010;Tel.(34) 96 381 99 47&#010;&#010;yquinoy@indenova.com &lt;mailto:yquinoy@indenova.com&gt;&#010;www.indenova.com &lt;http://www.indenova.com/&gt;&#010;&#010;*RESPETEMOS EL MEDIO AMBIENTE*:¿Necesita realmente imprimir este email?&#010;*PLEASE RESPECT THE ENVIRONMENT*: Do you really need to print this email?&#010;*CONFIDENCIALIDAD*: Este email es confidencial y para uso exclusivo de &#010;su destinatario.&#010;*CONFIDENTIALITY*: This email is confidential and for the exclusive use &#010;of its addressee.&#010;&#010;---------------------------------------------------------------------------------------------------&#010;Descargue el visor gratuito de archivos firmados electrónicamente eSigna &#010;Viewer:&#010;http://www.indenova.com/eSignaViewer.php&#010;---------------------------------------------------------------------------------------------------&#010;&#010;&#010;&#010;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Getting bold text from Paragraph</title>
<author><name>Ian C &lt;ian@amham.net&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-odf-users/201301.mbox/%3cCAKw-CV+jUdnV+fLtxL6H9Qqc-b4N_+Zx-x0GW-AFmZ=4WmWkuw@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCAKw-CV+jUdnV+fLtxL6H9Qqc-b4N_+Zx-x0GW-AFmZ=4WmWkuw@mail-gmail-com%3e</id>
<updated>2013-01-08T14:09:49Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,&#010;&#010;check out the TextExtractor class it uses the visitor pattern to grab the&#010;text from child elements.&#010;&#010;I seem to remember a example in the cookbook.&#010;&#010;I think your bold text may be ignored because it is in a span element&#010;within a paragraph, so your code will not see it.&#010;&#010;Cheers,&#010;&#010;Ian&#010;&#010;&#010;On Tuesday, January 8, 2013, Yago Quiñoy Lobariñas &lt;yquinoy@indenova.com&gt;&#010;wrote:&#010;&gt;&#010;&gt; Hi.&#010;&gt;&#010;&gt; I've loaded a odt file in my Java code and im trying to get all document&#010;text with SimpleApi.&#010;&gt;&#010;&gt; The problem comes when some middle text is marked as bold text. SimpleApi&#010;ignores it and just shows the rest of the paragraph's text.&#010;&gt;&#010;&gt; Here is the code:&#010;&gt;&#010;&gt; {CODE}&#010;&gt; String allText = "";&#010;&gt;         try {&#010;&gt;             TextDocument odt = TextDocument.loadDocument(docPath);&#010;&gt;&#010;&gt;             Iterator&lt;Paragraph&gt; ip = odt.getParagraphIterator();&#010;&gt;&#010;&gt;             while (ip.hasNext()) {&#010;&gt;&#010;&gt;                 Paragraph paragraph = ip.next();&#010;&gt;&#010;&gt;                 //All text in paragraph&#010;&gt;                 allText = paragraph.getTextContent();&#010;&gt;                 System.out.println(allText);&#010;&gt;&#010;&gt;                 //I'm checking paragraph to ensure that there is my bold&#010;text.&#010;&gt;                 TextParagraphElementBase domp = paragraph.getOdfElement();&#010;&gt;                 System.out.println(domp.toString());&#010;&gt;&#010;&gt;             }&#010;&gt;&#010;&gt;         } catch (Exception ex) {&#010;&gt;             ex.printStackTrace();&#010;&gt;         }&#010;&gt; {CODE:END}&#010;&gt;&#010;&gt; An here is the output.&#010;&gt;&#010;&gt; aaaaaaaaaaaaaacccccccccccccc&#010;&gt; &lt;text:p text:style-name="Standard"&gt;aaaaaaaaaaaaaa&lt;text:span&#010;text:style-name="T1"&gt;bbbbbbbbbbbbbbbbb&lt;/text:span&gt;cccccccccccccc&lt;/text:p&gt;&#010;&gt;&#010;&gt; Thanks&#010;&gt; --&#010;&gt; Yago Quiñoy Lobariñas&#010;&gt; Área de desarrollo&#010;&gt; INDENOVA S.L.&#010;&gt; P.I. Vara de Quart&#010;&gt; C/Dels Traginers 14, 2º planta izq.&#010;&gt; 46014 Valencia&#010;&gt; Tel.(34) 96 381 99 47&#010;&gt;&#010;&gt; yquinoy@indenova.com &lt;mailto:yquinoy@indenova.com&gt;&#010;&gt; www.indenova.com &lt;http://www.indenova.com/&gt;&#010;&gt;&#010;&gt; *RESPETEMOS EL MEDIO AMBIENTE*:¿Necesita realmente imprimir este email?&#010;&gt; *PLEASE RESPECT THE ENVIRONMENT*: Do you really need to print this email?&#010;&gt; *CONFIDENCIALIDAD*: Este email es confidencial y para uso exclusivo de su&#010;destinatario.&#010;&gt; *CONFIDENTIALITY*: This email is confidential and for the exclusive use&#010;of its addressee.&#010;&gt;&#010;&gt;&#010;---------------------------------------------------------------------------------------------------&#010;&gt; Descargue el visor gratuito de archivos firmados electrónicamente eSigna&#010;Viewer:&#010;&gt; http://www.indenova.com/eSignaViewer.php&#010;&gt;&#010;---------------------------------------------------------------------------------------------------&#010;&gt;&#010;&gt;&#010;&gt;&#010;&#010;-- &#010;Cheers,&#010;&#010;Ian C&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Getting bold text from Paragraph</title>
<author><name>Yago Quiñoy Lobariñas &lt;yquinoy@indenova.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-odf-users/201301.mbox/%3c50EBF8C0.7060501@indenova.com%3e"/>
<id>urn:uuid:%3c50EBF8C0-7060501@indenova-com%3e</id>
<updated>2013-01-08T10:45:20Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
&#010;Hi.&#010;&#010;I've loaded a odt file in my Java code and im trying to get all document &#010;text with SimpleApi.&#010;&#010;The problem comes when some middle text is marked as bold text. &#010;SimpleApi ignores it and just shows the rest of the paragraph's text.&#010;&#010;Here is the code:&#010;&#010;{CODE}&#010;String allText = "";&#010;         try {&#010;             TextDocument odt = TextDocument.loadDocument(docPath);&#010;&#010;             Iterator&lt;Paragraph&gt; ip = odt.getParagraphIterator();&#010;&#010;             while (ip.hasNext()) {&#010;&#010;                 Paragraph paragraph = ip.next();&#010;&#010;                 //All text in paragraph&#010;                 allText = paragraph.getTextContent();&#010;                 System.out.println(allText);&#010;&#010;                 //I'm checking paragraph to ensure that there is my &#010;bold text.&#010;                 TextParagraphElementBase domp = paragraph.getOdfElement();&#010;                 System.out.println(domp.toString());&#010;&#010;             }&#010;&#010;         } catch (Exception ex) {&#010;             ex.printStackTrace();&#010;         }&#010;{CODE:END}&#010;&#010;An here is the output.&#010;&#010;aaaaaaaaaaaaaacccccccccccccc&#010;&lt;text:p text:style-name="Standard"&gt;aaaaaaaaaaaaaa&lt;text:span &#010;text:style-name="T1"&gt;bbbbbbbbbbbbbbbbb&lt;/text:span&gt;cccccccccccccc&lt;/text:p&gt;&#010;&#010;Thanks&#010;-- &#010;Yago Quiñoy Lobariñas&#010;Área de desarrollo&#010;INDENOVA S.L.&#010;P.I. Vara de Quart&#010;C/Dels Traginers 14, 2º planta izq.&#010;46014 Valencia&#010;Tel.(34) 96 381 99 47&#010;&#010;yquinoy@indenova.com &lt;mailto:yquinoy@indenova.com&gt;&#010;www.indenova.com &lt;http://www.indenova.com/&gt;&#010;&#010;*RESPETEMOS EL MEDIO AMBIENTE*:¿Necesita realmente imprimir este email?&#010;*PLEASE RESPECT THE ENVIRONMENT*: Do you really need to print this email?&#010;*CONFIDENCIALIDAD*: Este email es confidencial y para uso exclusivo de &#010;su destinatario.&#010;*CONFIDENTIALITY*: This email is confidential and for the exclusive use &#010;of its addressee.&#010;&#010;---------------------------------------------------------------------------------------------------&#010;Descargue el visor gratuito de archivos firmados electrónicamente eSigna &#010;Viewer:&#010;http://www.indenova.com/eSignaViewer.php&#010;---------------------------------------------------------------------------------------------------&#010;&#010;&#010;&#010;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Presentation for the project</title>
<author><name>Albino Biasutti Neto &lt;bino28@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-odf-users/201212.mbox/%3cCADHP4myWYj=ymjhgwNuLUn-YT_kGQWj8e1arO=VFmDL_dz9ZhQ@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCADHP4myWYj=ymjhgwNuLUn-YT_kGQWj8e1arO=VFmDL_dz9ZhQ@mail-gmail-com%3e</id>
<updated>2012-12-11T19:22:29Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hello&#010;&#010;I hope I can help the project in the best way possible.&#010;&#010;I'm a user and contribute to Apache OpenOffice project. I have little&#010;experience in the development of the ODF Toolkit.&#010;&#010;I'm enthusiast and activist ODF in the country I reside in Brazil. :-)&#010;&#010;          Albino&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: adding in memory image to document table cell</title>
<author><name>Dimitrios Kateros &lt;dkateros@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-odf-users/201212.mbox/%3cCAEr1tU2xNOYS=1otWM_2rf5hn6vYVp-4_VfY9Mk_3bawDPRsAA@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCAEr1tU2xNOYS=1otWM_2rf5hn6vYVp-4_VfY9Mk_3bawDPRsAA@mail-gmail-com%3e</id>
<updated>2012-12-11T15:10:42Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Close this, I will post my solution for reference.&#010;&#010;FileInputStream fis = new FileInputStream(new File("/tmp/test.jpg"));&#010;&#010;OdfPackage pkg = odt.getPackage();&#010;pkg.insert(fis, "Pictures/test.jpg", "image/jpeg");&#010;fis.close();&#010;&#010;Table table = odt.addTable(1, 2);&#010;Cell cell = table.getCellByPosition(0, 0);&#010;cell.setStringValue("some text");&#010;Cell cell2 = table.getCellByPosition(1, 0);&#010;&#010;Paragraph p = Paragraph.newParagraph(cell2);&#010;TextPElement firstParagraph =&#010;OdfElement.findFirstChildNode(TextPElement.class, cell2.getOdfElement());&#010;DrawFrameElement frame = firstParagraph.newDrawFrameElement();&#010;frame.setSvgHeightAttribute("0.672cm"); //hardcoded&#010;frame.setSvgWidthAttribute("3.444cm"); //hardcoded&#010;DrawImageElement imgElement = frame.newDrawImageElement();&#010;imgElement.setXlinkHrefAttribute("Pictures/test.jpg");&#010;imgElement.setXlinkTypeAttribute("simple");&#010;&#010;odt.save("/tmp/test.odt");&#010;&#010;&#010;&#010;On Tue, Dec 11, 2012 at 2:56 PM, Dimitrios Kateros &lt;dkateros@gmail.com&gt;wrote:&#010;&#010;&gt; OK, made some progress. The following snippet will add the image to the&#010;&gt; document package, but I still cannot add it to the Table using the&#010;&gt; org.odftoolkit.simple.table.Cell#setImage(URI uri) method (it still ends up&#010;&gt; looking to the filesystem).&#010;&gt;&#010;&gt; byte[] img; //assume this is the image.&#010;&gt;&#010;&gt; TextDocument odt = TextDocument.newTextDocument();&#010;&gt; OdfPackage pkg = odt.getPackage();&#010;&gt; pkg.insert(new ByteArrayInputStream(img), "Pictures/test.jpg",&#010;&gt; "image/jpeg");&#010;&gt;&#010;&gt; It looks that I have to manipulate the XML to look like this:&#010;&gt;&#010;&gt; &lt;table:table-cell table:style-name="a860a14"&gt;&#010;&gt;     &lt;text:p&gt;&#010;&gt;         &lt;draw:frame svg:height="0.672cm" svg:width="3.444cm"&#010;&gt; text:anchor-type="paragraph"&gt;&#010;&gt;             &lt;draw:image xlink:href="Pictures/test.jpg"&#010;&gt; xlink:type="simple"&gt;&lt;/draw:image&gt;&#010;&gt;         &lt;/draw:frame&gt;&#010;&gt;     &lt;/text:p&gt;&#010;&gt; &lt;/table:table-cell&gt;&#010;&gt;&#010;&gt; Is the advanced API my only bet right now?&#010;&gt;&#010;&gt; Thx again // Dimitris&#010;&gt;&#010;&gt; PS: I obviously do not have enough experience with the library (just today&#010;&gt; tbh), but, if there is no other way to do it with the simple API, would it&#010;&gt; be too far-fetched for the implementation to handle it correctly if the&#010;&gt; relative odf package path is used as the URI input?&#010;&gt;&#010;&gt;&#010;&gt;&#010;&gt;&#010;&gt; On Tue, Dec 11, 2012 at 12:54 PM, Dimitrios Kateros &lt;dkateros@gmail.com&gt;wrote:&#010;&gt;&#010;&gt;&gt; Greetings,&#010;&gt;&gt;&#010;&gt;&gt; I have an in memory image that I wish to add to a specific table cell of&#010;&gt;&gt; a document.&#010;&gt;&gt;&#010;&gt;&gt; As far as I can tell, the OdfToolkit API only allows this if the user&#010;&gt;&gt; provides a java.net.URI instance.&#010;&gt;&gt;&#010;&gt;&gt; Is there anyway to circumvent this using either the simple or the dom&#010;&gt;&gt; api? I would prefer not to write the image to disk (or anything similar) in&#010;&gt;&gt; order to provide a URI.&#010;&gt;&gt;&#010;&gt;&gt; Thank you in advance,&#010;&gt;&gt;&#010;&gt;&gt; Dimitris&#010;&gt;&gt;&#010;&gt;&#010;&gt;&#010;&gt;&#010;&gt; --&#010;&gt; Dimitrios Kateros&#010;&gt;&#010;&#010;&#010;&#010;-- &#010;Dimitris Kateros&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: adding in memory image to document table cell</title>
<author><name>Dimitrios Kateros &lt;dkateros@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-odf-users/201212.mbox/%3cCAEr1tU1WBdUWEJWP58fJ91uE6MJ+Udhb4CFw5bg8rSr+w0UdDQ@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCAEr1tU1WBdUWEJWP58fJ91uE6MJ+Udhb4CFw5bg8rSr+w0UdDQ@mail-gmail-com%3e</id>
<updated>2012-12-11T12:56:24Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
OK, made some progress. The following snippet will add the image to the&#010;document package, but I still cannot add it to the Table using the&#010;org.odftoolkit.simple.table.Cell#setImage(URI uri) method (it still ends up&#010;looking to the filesystem).&#010;&#010;byte[] img; //assume this is the image.&#010;&#010;TextDocument odt = TextDocument.newTextDocument();&#010;OdfPackage pkg = odt.getPackage();&#010;pkg.insert(new ByteArrayInputStream(img), "Pictures/test.jpg",&#010;"image/jpeg");&#010;&#010;It looks that I have to manipulate the XML to look like this:&#010;&#010;&lt;table:table-cell table:style-name="a860a14"&gt;&#010;    &lt;text:p&gt;&#010;        &lt;draw:frame svg:height="0.672cm" svg:width="3.444cm"&#010;text:anchor-type="paragraph"&gt;&#010;            &lt;draw:image xlink:href="Pictures/test.jpg"&#010;xlink:type="simple"&gt;&lt;/draw:image&gt;&#010;        &lt;/draw:frame&gt;&#010;    &lt;/text:p&gt;&#010;&lt;/table:table-cell&gt;&#010;&#010;Is the advanced API my only bet right now?&#010;&#010;Thx again // Dimitris&#010;&#010;PS: I obviously do not have enough experience with the library (just today&#010;tbh), but, if there is no other way to do it with the simple API, would it&#010;be too far-fetched for the implementation to handle it correctly if the&#010;relative odf package path is used as the URI input?&#010;&#010;&#010;&#010;On Tue, Dec 11, 2012 at 12:54 PM, Dimitrios Kateros &lt;dkateros@gmail.com&gt;wrote:&#010;&#010;&gt; Greetings,&#010;&gt;&#010;&gt; I have an in memory image that I wish to add to a specific table cell of a&#010;&gt; document.&#010;&gt;&#010;&gt; As far as I can tell, the OdfToolkit API only allows this if the user&#010;&gt; provides a java.net.URI instance.&#010;&gt;&#010;&gt; Is there anyway to circumvent this using either the simple or the dom api?&#010;&gt; I would prefer not to write the image to disk (or anything similar) in&#010;&gt; order to provide a URI.&#010;&gt;&#010;&gt; Thank you in advance,&#010;&gt;&#010;&gt; Dimitris&#010;&gt;&#010;&#010;&#010;&#010;-- &#010;Dimitrios Kateros&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>adding in memory image to document table cell</title>
<author><name>Dimitrios Kateros &lt;dkateros@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-odf-users/201212.mbox/%3cCAEr1tU1jtT6JQnoOyV2hCZqb5Dd+SHPj9-nLCW5-ARLWSxvV4Q@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCAEr1tU1jtT6JQnoOyV2hCZqb5Dd+SHPj9-nLCW5-ARLWSxvV4Q@mail-gmail-com%3e</id>
<updated>2012-12-11T10:54:05Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Greetings,&#010;&#010;I have an in memory image that I wish to add to a specific table cell of a&#010;document.&#010;&#010;As far as I can tell, the OdfToolkit API only allows this if the user&#010;provides a java.net.URI instance.&#010;&#010;Is there anyway to circumvent this using either the simple or the dom api?&#010;I would prefer not to write the image to disk (or anything similar) in&#010;order to provide a URI.&#010;&#010;Thank you in advance,&#010;&#010;Dimitris&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Level of JDK support</title>
<author><name>Asier &lt;avsgi09@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-odf-users/201212.mbox/%3c50C59819.2080408@gmail.com%3e"/>
<id>urn:uuid:%3c50C59819-2080408@gmail-com%3e</id>
<updated>2012-12-10T08:06:49Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
El 08/12/2012 4:14, Rob Weir escribió:&#010;&#010;Not right now, but there's lot of customers with legacy systems in which they&#010;upgraded JDK 1.4 -&gt; 1.5 few years ago and don't plan to upgrade again; at&#010;least while WebLogic 10 / WebSphere 6.1 are supported.&#010;&#010;Regards&#010;&#010;&gt; Forwarding to the users list as well, to see if JDK5 support is&#010;&gt; critical for anyone.&#010;&gt; &#010;&gt; -Rob&#010;&gt; &#010;&gt; On Fri, Dec 7, 2012 at 6:04 PM, Svante Schubert&#010;&gt; &lt;svante.schubert@gmail.com&gt; wrote:&#010;&gt;&gt; Hi everyone,&#010;&gt;&gt;&#010;&gt;&gt; The EOL of the original JDK 6 was recently postponed by Oracle, and I am&#010;&gt;&gt; myself still using the JDK 6 as my main Java environment.&#010;&gt;&gt; But on a few projects I am already using JDK 7. The support of any other&#010;&gt;&gt; older JDK 5, 4, 3.. seems without a strong commercial backing not&#010;&gt;&gt; feasible to me.&#010;&gt;&gt; For smoke testing of the RDF metadata patch, I have switched the JDK on&#010;&gt;&gt; our Jenkins server to 6, to investigate if there are any problems at all&#010;&gt;&gt; (the existing was a dependency to a RDF library (Jena), that has been&#010;&gt;&gt; build by JDK 6 only.&#010;&gt;&gt;&#010;&gt;&gt; I would be curious if someone is still interested in the support of JDK 5.&#010;&gt;&gt;&#010;&gt;&gt; The Config URL for Jenkins Server are&#010;&gt;&gt; https://builds.apache.org/job/ODFToolkit/&#010;&gt;&gt; and&#010;&gt;&gt; https://builds.apache.org/job/ODFToolkit-windows/&#010;&gt;&gt;&#010;&gt;&gt; The windows machine seems offline..&#010;&gt;&gt; https://builds.apache.org/computer/windows1/load-statistics?type=hour&#010;&gt;&gt;&#010;&gt;&gt; //Best regards,&#010;&gt;&gt; Svante&#010;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Level of JDK support</title>
<author><name>Rob Weir &lt;robweir@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-odf-users/201212.mbox/%3cCAP-ksoj-4WfH80JK6FKyS4BsujvGzUQaUMocD_uOQckejjBYzg@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCAP-ksoj-4WfH80JK6FKyS4BsujvGzUQaUMocD_uOQckejjBYzg@mail-gmail-com%3e</id>
<updated>2012-12-08T03:14:16Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Forwarding to the users list as well, to see if JDK5 support is&#010;critical for anyone.&#010;&#010;-Rob&#010;&#010;On Fri, Dec 7, 2012 at 6:04 PM, Svante Schubert&#010;&lt;svante.schubert@gmail.com&gt; wrote:&#010;&gt; Hi everyone,&#010;&gt;&#010;&gt; The EOL of the original JDK 6 was recently postponed by Oracle, and I am&#010;&gt; myself still using the JDK 6 as my main Java environment.&#010;&gt; But on a few projects I am already using JDK 7. The support of any other&#010;&gt; older JDK 5, 4, 3.. seems without a strong commercial backing not&#010;&gt; feasible to me.&#010;&gt; For smoke testing of the RDF metadata patch, I have switched the JDK on&#010;&gt; our Jenkins server to 6, to investigate if there are any problems at all&#010;&gt; (the existing was a dependency to a RDF library (Jena), that has been&#010;&gt; build by JDK 6 only.&#010;&gt;&#010;&gt; I would be curious if someone is still interested in the support of JDK 5.&#010;&gt;&#010;&gt; The Config URL for Jenkins Server are&#010;&gt; https://builds.apache.org/job/ODFToolkit/&#010;&gt; and&#010;&gt; https://builds.apache.org/job/ODFToolkit-windows/&#010;&gt;&#010;&gt; The windows machine seems offline..&#010;&gt; https://builds.apache.org/computer/windows1/load-statistics?type=hour&#010;&gt;&#010;&gt; //Best regards,&#010;&gt; Svante&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Update page count in generated document</title>
<author><name>Asier &lt;avsgi09@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-odf-users/201212.mbox/%3c201212012133.59934.avsgi09@gmail.com%3e"/>
<id>urn:uuid:%3c201212012133-59934-avsgi09@gmail-com%3e</id>
<updated>2012-12-01T20:33:59Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Sábado 01 diciembre 2012 21:18:29 usted escribió:&#010;&gt; On Sábado 01 diciembre 2012 16:29:21 Rob Weir escribió:&#010;&gt; &gt; &gt; How can I force an update of all the page count footers and the index?&#010;&gt; &gt; &#010;&gt; &gt; An ODF document -- as just a static document on disk -- has no concept&#010;&gt; &gt; of a page.  A page only exists when the contents of a document are&#010;&gt; &gt; rendered according to a layout algorithm, taking into account page&#010;&gt; &gt; size, printer and font metrics, etc.&#010;&gt; &gt; &#010;&gt; &gt; So if you are using a tool that modifies the file format directly,&#010;&gt; &gt; without a full rendering of the document, it is hard to determine&#010;&gt; &gt; absolute page numbers or page counts.  However, once you load the&#010;&gt; &gt; generated document in an editor it should re-render the document and&#010;&gt; &gt; calculate and update the page breaks, page numbers, page counts, etc.&#010;&gt; &#010;&gt; It's something strange because the "actual" page number is created with the&#010;&gt; appropiate value. Ex:&#010;&gt; &#010;&gt; "Page 20 of 20" -&gt; for last page before adding contents&#010;&gt; "Page 21 of 20" -&gt; first added page&#010;&gt; "Page 22 of 20" -&gt; second added page&#010;&gt; ...&#010;&gt; &#010;&gt; So in a generated document some fields get updated and others not (page&#010;&gt; count, index)? why?&#010;&gt; &#010;&gt; If I can't get the total page count updated via code, I suppose that to&#010;&gt; render the document an instance of OpenOffice/LibreOffice must be used;&#010;&gt; this could be tricky in a headless server environment (at least in my&#010;&gt; scenario).&#010;&gt; &#010;&#010;Sorry - our own fault. If the last page is 20, then appears like this:&#010;&#010;&gt; "Page 16 of 20" -&gt; &#010;&gt; "Page 17 of 20" -&gt; &#010;&gt; "Page 18 of 20" -&gt; last page&#010;&#010;In the document the total page count (20) is ok, the problem is that some pages (the &#010;covers) don't get counted as individual pages -- the first logical page in the document is&#010;&#010;the third "real" page-- but are counted for he total page count. &#010;&#010;I'll look into the template document.&#010;&#010;Regards&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Update page count in generated document</title>
<author><name>Asier &lt;avsgi09@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-odf-users/201212.mbox/%3c201212012118.29682.avsgi09@gmail.com%3e"/>
<id>urn:uuid:%3c201212012118-29682-avsgi09@gmail-com%3e</id>
<updated>2012-12-01T20:18:29Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Sábado 01 diciembre 2012 16:29:21 Rob Weir escribió:&#010;&#010;&gt; &gt; How can I force an update of all the page count footers and the index?&#010;&gt; &#010;&gt; An ODF document -- as just a static document on disk -- has no concept&#010;&gt; of a page.  A page only exists when the contents of a document are&#010;&gt; rendered according to a layout algorithm, taking into account page&#010;&gt; size, printer and font metrics, etc.&#010;&gt; &#010;&gt; So if you are using a tool that modifies the file format directly,&#010;&gt; without a full rendering of the document, it is hard to determine&#010;&gt; absolute page numbers or page counts.  However, once you load the&#010;&gt; generated document in an editor it should re-render the document and&#010;&gt; calculate and update the page breaks, page numbers, page counts, etc.&#010;&#010;It's something strange because the "actual" page number is created with the appropiate &#010;value. Ex:&#010;&#010;"Page 20 of 20" -&gt; for last page before adding contents&#010;"Page 21 of 20" -&gt; first added page&#010;"Page 22 of 20" -&gt; second added page&#010;...&#010;&#010;So in a generated document some fields get updated and others not (page count, index)? &#010;why?&#010;&#010;If I can't get the total page count updated via code, I suppose that to render the &#010;document an instance of OpenOffice/LibreOffice must be used; this could be tricky in a &#010;headless server environment (at least in my scenario).&#010;&#010;Regards&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Update page count in generated document</title>
<author><name>Rob Weir &lt;robweir@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-odf-users/201212.mbox/%3cCAP-ksoibNSafMByGFL3utn1qUOE2UPNzvMXon4jbCgY2Sw=k7A@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCAP-ksoibNSafMByGFL3utn1qUOE2UPNzvMXon4jbCgY2Sw=k7A@mail-gmail-com%3e</id>
<updated>2012-12-01T15:29:21Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Fri, Nov 30, 2012 at 1:33 PM, Asier &lt;avsgi09@gmail.com&gt; wrote:&#010;&gt; Hi&#010;&gt;&#010;&gt; I have a generated document. A the footer of each page there's the typical "Page 1 of&#010;20"&#010;&gt; text. At some point a long list of specifications are added and some new pages are&#010;&gt; appended at the end of the document, but the page count and the index doesn't get&#010;&gt; refreshed, so at the footer I get something like "Page 24 of 20" and the index doesn't&#010;get&#010;&gt; updated to reflect the new sections in the document.&#010;&gt;&#010;&gt; How can I force an update of all the page count footers and the index?&#010;&gt;&#010;&#010;An ODF document -- as just a static document on disk -- has no concept&#010;of a page.  A page only exists when the contents of a document are&#010;rendered according to a layout algorithm, taking into account page&#010;size, printer and font metrics, etc.&#010;&#010;So if you are using a tool that modifies the file format directly,&#010;without a full rendering of the document, it is hard to determine&#010;absolute page numbers or page counts.  However, once you load the&#010;generated document in an editor it should re-render the document and&#010;calculate and update the page breaks, page numbers, page counts, etc.&#010;&#010;-Rob&#010;&#010;&gt; Regards&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Update page count in generated document</title>
<author><name>Rory O'Farrell &lt;ofarrwrk@iol.ie&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-odf-users/201211.mbox/%3c20121130191156.66abc944257e52a844e8d883@iol.ie%3e"/>
<id>urn:uuid:%3c20121130191156-66abc944257e52a844e8d883@iol-ie%3e</id>
<updated>2012-11-30T19:11:56Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Fri, 30 Nov 2012 19:33:18 +0100&#010;Asier &lt;avsgi09@gmail.com&gt; wrote:&#010;&#010;&gt; Hi&#010;&gt; &#010;&gt; I have a generated document. A the footer of each page there's the typical "Page 1 of&#010;20"  &#010;&gt; text. At some point a long list of specifications are added and some new pages are &#010;&gt; appended at the end of the document, but the page count and the index doesn't get &#010;&gt; refreshed, so at the footer I get something like "Page 24 of 20" and the index doesn't&#010;get &#010;&gt; updated to reflect the new sections in the document.&#010;&gt; &#010;&gt; How can I force an update of all the page count footers and the index?  &#010;&gt; &#010;&gt; Regards&#010;&#010;The Page Count should be inserted in your footer as /Insert /Field /Page Count; as you have&#010;described it, it appears to be inserted as the value 20, not as the dynamic Field Pagecount.&#010; For your Index update, position cursor in the Index, right Click and select Update Index.&#010;&#010;-- &#010;Rory O'Farrell &lt;ofarrwrk@iol.ie&gt;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Update page count in generated document</title>
<author><name>Asier &lt;avsgi09@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-odf-users/201211.mbox/%3c201211301933.18529.avsgi09@gmail.com%3e"/>
<id>urn:uuid:%3c201211301933-18529-avsgi09@gmail-com%3e</id>
<updated>2012-11-30T18:33:18Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi&#010;&#010;I have a generated document. A the footer of each page there's the typical "Page 1 of 20"&#010; &#010;text. At some point a long list of specifications are added and some new pages are &#010;appended at the end of the document, but the page count and the index doesn't get &#010;refreshed, so at the footer I get something like "Page 24 of 20" and the index doesn't get&#010;&#010;updated to reflect the new sections in the document.&#010;&#010;How can I force an update of all the page count footers and the index?  &#010;&#010;Regards&#010;&#010;
</pre>
</div>
</content>
</entry>
</feed>
