Fix more overflow issues in PDF files.