Fixed pdf printing.