Hi POI users and developers,
I'm diving into the POI HWPF component to dump doc files. I'm
encountering some difficulties with the PAPX object. I'ld like to dump
the SPRMs contained in it. According to the spec the Grpprl contains
starts with an SPRM, but it seems that POI at least reads the istd value
from there. Even this way, I'm getting some weird opCode when using the
SprmIterator.
Here is a code snippet of what I'm doing... you may spot something
wrong.
SprmIterator sprmIt = new SprmIterator( papx.getGrpprl(), 2 );
while ( sprmIt.hasNext() ) {
SprmOperation sprm = sprmIt.next();
short opCode = LittleEndian.getShort( sprm.getGrpprl(),
sprm.getGrpprlOffset() - 2 );
// Show the opCode here
}
Regards,
--
Cédric Bosdonnat
Go-oo hacker
http://go-oo.org
OOo Eclipse Integration developer
http://cedric.bosdonnat.free.fr
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]