https://issues.apache.org/bugzilla/show_bug.cgi?id=54272

            Bug ID: 54272
           Summary: Lack of Picture insertion implementation
           Product: POI
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HWPF
          Assignee: [email protected]
          Reporter: [email protected]
    Classification: Unclassified

The following can't be done directly using the java lib calls.

For an HWPFDocument successfully instantiated from a Word document, it is
possible to get the PicturesTable object for that document,
and to obtain a LinkedList of Picture objects for all the embedded images in
that word document.

********************************************************************************
#What isn't possible is to insert an entirely new Picture object into the
HWPFDocument (which was successfully instantiated from, say, a .bmp File from a
specified, directory) at a particular location, be it within a Paragraph's
CharacterRun/Rangle or by using the TextPieceTable/TextPiece/PropertyNode
approach. 

Whichever way it is fixed, needs to be updated so that the next call for
getPicturesTable() is automatically updated, and so that
PicturesTable.hasPicture(characterun) will behave too.

#It isn't possible to use something analogous to 

@Internal void replaceText(oldText,newText,index);

to inserted a Picture at a particular cursor location.
It certainly isn't directly possible to insert a picture which floats (in some 
sort of layer) over the text in any position.  Perhaps the only thing that
needs to be particularly done is that the PicturesTable class needs to be
updated to add a Picture to the table, either as static at an index.

Naturally getters need to be implemented too to get character position index
int values.
*******************************************************************************

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

Reply via email to