Script for making PDF. It's hidden from user.