You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2007/11/02 12:55:32 UTC

DO NOT REPLY [Bug 43781] New: - HSLF: wrong text in TextBoxes

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43781>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43781

           Summary: HSLF: wrong text in TextBoxes
           Product: POI
           Version: 3.0
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HSLF
        AssignedTo: dev@poi.apache.org
        ReportedBy: njones@astro.swin.edu.au


Problem with extracting text and geometry info from a
powerpoint file.  Sometimes (not always), I find that while slide->getTextRuns
returns the correct text, slide->getShapes->getTextRun returns the
wrong text: it seems to replace the text of an earlier run with that
of the last run.


Jython code of an example below.

----

> slideshow
org.apache.poi.hslf.usermodel.SlideShow@faa9e2
> slide = slideshow.getSlides()[0]
> slide
org.apache.poi.hslf.model.Slide@83413f
> for run in slide.getTextRuns():
>    print run.getText()
>
First run
Second run
> for shape in slide.getShapes():
>    print shape.getAnchor(), shape.getTextRun().getText()
>
java.awt.Rectangle[x=54,y=105,width=624,height=122] Second run
java.awt.Rectangle[x=48,y=270,width=624,height=36] Second run

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


DO NOT REPLY [Bug 43781] - HSLF: wrong text in TextBoxes

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43781>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43781


yegor@dinom.ru changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Additional Comments From yegor@dinom.ru  2007-12-24 01:51 -------
Fixed

Yegor

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


DO NOT REPLY [Bug 43781] - HSLF: wrong text in TextBoxes

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43781>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43781





------- Additional Comments From njones@astro.swin.edu.au  2007-11-02 04:57 -------
Created an attachment (id=21079)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=21079&action=view)
ppt file with 2 textruns which yield wrong text in shapes->textruns


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org