[ 
https://issues.apache.org/jira/browse/TIKA-5017?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18135800#comment-18135800
 ] 

Hudson commented on TIKA-5017:
------------------------------

SUCCESS: Integrated in Jenkins build Tika » tika-main-jdk17 #1763 (See 
[https://ci-builds.apache.org/job/Tika/job/tika-main-jdk17/1763/])
TIKA-5017: Extract PPTX slides in presentation order (#3468) (github: 
[https://github.com/apache/tika/commit/9f8b48425fea3630020924f6ae96e98eabb9ce12])
* (edit) CHANGES.txt
* (edit) 
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-microsoft-module/src/test/java/org/apache/tika/parser/microsoft/ooxml/OOXMLPptxSAXTest.java
* (edit) 
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-microsoft-module/src/main/java/org/apache/tika/parser/microsoft/ooxml/SXSLFPowerPointExtractorDecorator.java


> PPTX SAX extractor iterates slides in "lexographic relationship id" order 
> instead "presentation" order
> ------------------------------------------------------------------------------------------------------
>
>                 Key: TIKA-5017
>                 URL: https://issues.apache.org/jira/browse/TIKA-5017
>             Project: Tika
>          Issue Type: Bug
>          Components: parser
>    Affects Versions: 4.0.0
>            Reporter: Ken Reese
>            Priority: Minor
>         Attachments: libreoffice-twelve-slides.pptx
>
>
> This seems like a regression in behavior between the how the old PPTX DOM 
> extractor worked and how the newer PPTX SAX extractor works.
> The current PPTX SAX extractor is iterating slides in lexographic order of 
> their relationship id instead of actual presentation order. This doesn't 
> always make sense - you can have `rId10` show up before `rId4` for example.
> Tika is currently just using POI to iterate `ppt/_rels/presentation.xml.rels` 
> and returning the slides in whichever order POI returns in - which is just 
> using the relationship id as a key in a `TreeMap`. So we really shouldn't be 
> relying on the POI iteration order to give us the actual slide order back 
> here.
> I think we should instead be looking at `ppt/presentation.xml` to get the 
> slide ordering, which is how Tika used to work when it used the DOM extractor 
> by default. As of 4.0.0, the DOM extractor implementation has been completely 
> remove  from Tika, so there is no longer an easy workaround.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to