In v 3.6 of the POI library, there is an undocumented,  private 

methodgetPictureBytesStartOffset(...,...,);
There obviously isn't a getPictureBytesEndOffset.
Is this "Secret" private method entirely completed?

If values that correspond to a well instantiated Picture object
are not the height and width it is in it's File,
but that which is is sized to in the HWPFDocument, and I seek the latter,

Do I want getHeight(),getWidth()
or getAspectRatioX(), getAspectRatioY()

?


I'm still confused. With my "array search" algorithm, I try to
search my word document byte [] for occurences of my picture byte [].

I am also trying to reverse engineer from Picture, HWPFDocument....

Should I compare byte [] from DataInputStream of an image file, word file or
byte [] from HWPFdocument, Picture (Objects) ?

Which approach will have me finding the bytes of the image within the document?


------------------------------------------------------------------------------------------------------------------------

I am trying to reverse engineer an openoffice word style file,
to figure out where in the HWPFDocument byte streem to insert
the complete byte array from, say a java.io.File("fred.gif").

-I wish to insert it as a Character, but also as anchored with two Word offsets 
from
the character position.

-I wish to resize the image, always according to its aspect ratio.

So I am trying to reverse engineer from an OO file example.  As such,
I'm a little confused as to why I need ever care about a gif/jpg image file
header, unless there is more work to be done for insertion into HWPFDocument
that just taking the straight bytes.  I'm only trying to find such, in an 
example HWPFDocument byte [] byteArray to figure out how to originally insert.

Is it possible to send file attachments on emails to POI Users List 
<[email protected]> ?

Reply via email to