Algorithm of naming embedded Pictures in OpenOffice
I need to embed images inside OpenOffice Text documents without the help of OpenOffice itself. Fo开发者_如何转开发r that I need to work directly inside the zip archive and modify the appropriate xml files. The problem I have now is that OpenOffice stores embedded pictures inside a picture folder and asigns a unique name to them according to the information in the picture.
Filenames look as following:
10000000000000FF000000D84ABBAECB.jpg
This filename is divided into 4 parts at 8 Byte per part and ending with the file extension.
10000000 000000FF 000000D8 4ABBAECB
^ ^ ^ ^
unknown height width checksum
My problem now is that I have no clue what kind of checksum algorithm is used.
A quick check of the specification reveals no special rules for naming embedded pictures. I guess you can name them however you like (within sensible boundaries).
You cat set your own file names by adding the routes to the content.xml and manifest.xml files (META-INF/manifest.xml).
精彩评论