PDF generation in ABAP is simple, and a lot of tutorials show how to develop an application that generate such a PDF and save it on the back-end or on the front-end. However, from times to times, the generated PDF is corrupted. This occured for several clients. This notes describes the problem, and provide a solution.