poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 58144] New: Behaviour for headers and footers of slides is inconsistent between slideshows created in 2003 and 2007
Date Thu, 16 Jul 2015 09:34:27 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=58144

            Bug ID: 58144
           Summary: Behaviour for headers and footers of slides is
                    inconsistent between slideshows created in 2003 and
                    2007
           Product: POI
           Version: 3.10-FINAL
          Hardware: PC
                OS: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: HSLF
          Assignee: dev@poi.apache.org
          Reporter: trejkaz@trypticon.org

PPT files created in 2007 return the headers and footers as text runs from
Slide.getTextRuns().

PPT files created in 2003 don't.

Both of them return the headers and footers via getHeadersFooters(), of course.

This means that if you want to extract all the text, you can choose between two
equally bad options:

  (a) Don't use getHeadersFooters(), and then earlier formats miss some
      of the text.

  (b) Do use getHeadersFooters(), and then later formats get some text
      doubled up.

It would be nice if either text runs which are part of the header or footer
were automatically omitted, or if the older formats had additional text runs
inserted so that both formats can be treated identically.

Via the usermodel, there doesn't appear to be any kind of API to distinguish
the two, making it difficult to come up with a workaround.

-- 
You are receiving this mail because:
You are the assignee for the bug.

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


Mime
View raw message