poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 54722] HSLF: Text cannot be read from tables
Date Thu, 25 Apr 2013 16:59:17 GMT

--- Comment #1 from Phil Persad <philip.persad@gmail.com> ---
Created attachment 30226
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=30226&action=edit
Patch for reading text from tables

Apparently, this is caused during the construction of PPDrawing objects,
specifically, the portion where the textboxWrappers field is populated.

The first EscherContainerRecord of type 0xf003 (SpgrContainer) is found within
the container of type 0xf002.  Then all containers of type 0xf004 are found
within the SpgrContainer.  However, it is possible that the SpgrContainer might
also have other containers of type 0xf003, which in turn contain 0xf004s which
eventually contain text.  This is the case when a slide contains a table which
contains text.

I've written a patch which traverses an additional layer by looking for 0xf004s
within 0xf003s within the SpgrContainer.  I was torn between specifically going
one layer deeper and performing a recursive search.  While I suspect that the
recursive search may be more correct, the former approach is safer
(particularly as I'm not an expert on the data format).  Some feedback on which
approach is preferable would be appreciated.

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

View raw message