You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2015/07/16 11:34:27 UTC

[Bug 58144] New: Behaviour for headers and footers of slides is inconsistent between slideshows created in 2003 and 2007

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


[Bug 58144] Behaviour for headers and footers of slides is inconsistent between slideshows created in 2003 and 2007

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58144

--- Comment #2 from Trejkaz (pen name) <tr...@trypticon.org> ---
Created attachment 32911
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=32911&action=edit
Sample from 2003

-- 
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


[Bug 58144] Behaviour for headers and footers of slides is inconsistent between slideshows created in 2003 and 2007

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58144

Andreas Beeker <ki...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|3.10-FINAL                  |3.15-dev
           Hardware|PC                          |All
          Component|HSLF                        |SL Common
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Andreas Beeker <ki...@apache.org> ---
I've added a convenience method isHeaderOrFooter() to the TextParagraphs, so 
it's easy to distinguish between normal paragraphs and header/footer
Same applies for XSLF, i.e. it's available over the Common SL interface

Applied via r1743769

-- 
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


[Bug 58144] Behaviour for headers and footers of slides is inconsistent between slideshows created in 2003 and 2007

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58144

Javen O'Neal <on...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |60003

-- 
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


[Bug 58144] Behaviour for headers and footers of slides is inconsistent between slideshows created in 2003 and 2007

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58144

Dominik Stadler <do...@gmx.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #1 from Dominik Stadler <do...@gmx.at> ---
Can you provide sample files and sample code which allow to see the differences
without having to install both those versions of PowerPoint?

-- 
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


[Bug 58144] Behaviour for headers and footers of slides is inconsistent between slideshows created in 2003 and 2007

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58144

--- Comment #3 from Trejkaz (pen name) <tr...@trypticon.org> ---
Created attachment 32912
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=32912&action=edit
Sample from 2007

-- 
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


[Bug 58144] Behaviour for headers and footers of slides is inconsistent between slideshows created in 2003 and 2007

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58144

Trejkaz (pen name) <tr...@trypticon.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

--- Comment #4 from Trejkaz (pen name) <tr...@trypticon.org> ---
Attaching some contrasting examples.

-- 
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