Fix an issue for 1-page PDFs