Well the source code for SoPDF is available, though I don't think it's in a programming language I know. Perhaps someone who did could look into the possibility of preserving bookmarks. Or perhaps the basic algorithm could be ported to php and tweaked. It's worth checking out.
|