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/02/18 22:59:50 UTC

[Bug 57598] New: No way to associate shape with its textbox text range

https://bz.apache.org/bugzilla/show_bug.cgi?id=57598

            Bug ID: 57598
           Summary: No way to associate shape with its textbox text range
           Product: POI
           Version: 3.8-FINAL
          Hardware: Macintosh
            Status: NEW
          Severity: major
          Priority: P5
         Component: HWPF
          Assignee: dev@poi.apache.org
          Reporter: sbuberl@gmail.com

I am trying to match up multiples shape (OfficeDrawings) with their text in the
getMainTextBoxRange. No text or anything that seemed like in an offset the
range in the tmain textbox range pragraraphs.  It looks like shapes usually end
in empty shapes in text range, but if shape text has blank line, it's no longer
helpful.  Would be possible to add new API to help with this?

Thanks.

-- 
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 57598] No way to associate shape with its textbox text range

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

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

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

--- Comment #1 from Dominik Stadler <do...@gmx.at> ---
Can you attach a sample file that can be used for looking at this?

-- 
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 57598] No way to associate shape with its textbox text range

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

--- Comment #2 from sbuberl@gmail.com ---
This was 14 months ago when I was still working at my last job (and cared about
this issue).  I may forgtoten something.  If I remember correctly there was an
API method/class that returned all the shapes' text as one big range/block
text.  All shape's texts were terminated by new lines (and I think in order
from top to bottom).  Which may have been extremely helpful except shapes
(especially comments which I think were also in there) can multiple lines over
their own.  Now there is no reliable way to know when one shape ends and the
next begins using this blob.  What would have been more helpful is if each
diagram/shape knew its own text and exposed it via its own API rather then
putting all shaepe text in one big blob.  Of if you want keep the blob, the
shape could known it's own text offset and length in the blob.

We were trying to find all text in documents, no matter if paragraph, shape,
whatever and order them to something resembling to top to bottom.  We tried all
an API method until we discovered API was lacking things we needed so did most
of the work in the OOXML itself and found a solution tht fit our needs.

-- 
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 57598] No way to associate shape with its textbox text range

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

--- Comment #5 from Dominik Stadler <do...@gmx.at> ---
The source of POI is available, so the best course of action would have been to
add the necessary API/functionality and to contribute it to the project. 

That's how volunteer-driven open source projects can grow and improve without
depending on the limited time of a few non-paid volunteers.

-- 
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 57598] No way to associate shape with its textbox text range

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

sbuberl@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sbuberl@gmail.com
                 OS|                            |All

-- 
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 57598] No way to associate shape with its textbox text range

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #3 from Dominik Stadler <do...@gmx.at> ---
Unfortunately it is very hard to reproduce/work on this without any sample code
or sample file, so I am closing this for now, please provide more information,
especially a sample file if you are having this issue.

-- 
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 57598] No way to associate shape with its textbox text range

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

--- Comment #4 from sbuberl@gmail.com ---
Did anyone actually read this?  It's not a bug.  There is nothing to really
reproduce.  It was a question/request to see if your API could do something and
maybe request it be added.  Make a new document which a handful of shapes. 
Some with text and some with not.  All I wanted to do was given any shape in
the document, find its text (if it had any).  The getMainTextBoxRange was the
only way to get shape text, but its only big concatenation of all shapes into
one big string/range with no way to distinguish which shape belonged to which
part of the text.  We had to work around this by reading the ooxml itself, but
it would have been helpful in the main API.  That's it.

I left that former job long ago but I don't care anymore but we had to a lot of
ooxml manipulation across all your APIs for things it was lacking like this.

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