I\'ve written a custom splitter to split my PDF by the outlines/bookmarks. It works but the problem is the last document remains open and is corrupted. The document shows ther