When creating PDF files, the downloaded file shows an error that it is damaged