poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 43781] New: - HSLF: wrong text in TextBoxes
Date Fri, 02 Nov 2007 11:55:32 GMT
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


Mime
View raw message