You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Yegor Kozlov <ye...@dinom.ru> on 2006/05/04 14:15:49 UTC
Re[2]: HSLF getting text from each slide in sequence
Nick,
I dumped the referenced ppt and see that the slide order is defined by
the order in which slides are listed in SlideListWithText. If I can
confirm that it is always so I will prepare the patch in a day or two.
Regards,
Yegor Kozlov
NB> On Sat, 29 Apr 2006, Mihali A. Felipe wrote:
>> Hi. I'm new to POI and am getting a little perplexed. I'm trying to do
>> something seemingly simple - getting text from each slide in sequence
>> while keeping track of which slide the text is from. However, the slides
>> do not show up in sequence (and it seems like some slides are repeated
>> e.g. try it on
>> http://www.gersteinlab.org/lectures/ppt/A2K-at-Yale-20060422.ppt).
>> Also, I don't know where/how to get the real slide number.
NB> Alas, nor do we. Each core record (Document, Slide, Notes, MainMaster etc)
NB> has a unique ID. This ID is used by the PersistPtr stuff, so it can look
NB> up that ID to an actual record in the file. This same number is also used
NB> to link a Notes back to its Slide.
NB> I'd assumed that this number might bear some relation to the slide
NB> ordering. It turns out that the numbering is based on the order the slides
NB> were added in, and when you re-order, it isn't updated.
NB> So, until we can figure out where PowerPoint does store the slide
NB> ordering, we can't return the slides in that order.
NB> If you can find another open source powerpoint reader (that isn't
NB> OpenOffice, since that has brain hurting code) that does get the slides in
NB> the right order, can you let us know? We can then take a look through
NB> their code, and try to figure out what record / records are used for the
NB> slide ordering.
>> P.S. Why does getSheetNumber() keep giving me -1?
NB> On a recent SVN checkout, it should give you one higher than the
NB> slide's position in the array of slides. Are you sure you have a recent
NB> enough copy of POI?
NB> Nick
NB> ---------------------------------------------------------------------
NB> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
NB> Mailing List: http://jakarta.apache.org/site/mail2.html#poi
NB> The Apache Jakarta Poi Project: http://jakarta.apache.org/poi/
---------------------------------------------------------------------
To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
Mailing List: http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project: http://jakarta.apache.org/poi/
Re[2]: HSLF getting text from each slide in sequence
Posted by Nick Burch <ni...@torchbox.com>.
On Thu, 4 May 2006, Yegor Kozlov wrote:
> I dumped the referenced ppt and see that the slide order is defined by
> the order in which slides are listed in SlideListWithText.
What about cases where we have multiple SlideListWithTexts? I think we
need a test file with loads of slides, added on several occassions, with
lots re-ordered.
> If I can confirm that it is always so I will prepare the patch in a day
> or two.
If that's the key, it should be quite easy :)
Nick
---------------------------------------------------------------------
To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
Mailing List: http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project: http://jakarta.apache.org/poi/