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: [email protected]
Reporter: [email protected]
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: [email protected]
For additional commands, e-mail: [email protected]