Well... the main goal of a finally statement is that we are almost sure that it will be execute if exceptions are throw. If you don't want it to be executed just don't put a finally statement... or use a boolean in your finally
As far as I know, the only regular way to have a finally block not executed is to call System.exit(x) in the try- or catch-block.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com