Improve PDF rendering