issue #510, generate pdf after analysis done.