please find a sample attached which is based on your example in the documentation. docobfuscated.pdf contains bookmarks that are all collapsed on first level. After running this through the little java program, the result (docobfuscated.out.pdf) contains fully expanded bookmarks.
I would prefer if PDF.Kit would not touch those properties...
Tested with Aspose PDF.Kit Java 4.0.0 (downloaded today).