Basic PDF template handling