Made the PDF resize properly.