[Mantis#0000059] Fix pdf output file name when pdf is viewed