you can refer to DWFreader.cpp ( below) to read w2d package in DWF file,
to process w2d package you can use example W2dTest in DWF toolkit.
@Thanks voicon : (R u vietnamese)
So, Your code you refer can get direct stream 2d from dwf file .
About 3d stream , how can you get it ?
Thanks voicon so much.