poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nick Jones" <nick.t.jo...@gmail.com>
Subject Re: HSLF: wrong text in TextBoxes
Date Fri, 02 Nov 2007 12:00:18 GMT
Here's the bug report.

ASF Bugzilla Bug 43781 HSLF: wrong text in TextBoxes 	Last modified:
2007-11-02 04:57:35

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
> slide = slideshow.getSlides()[0]
> slide
> 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

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

View raw message