Improve PDF plugin