I used PDFBOX to fill form and then flatten it using api. Resulting PDF is not correctly displayed
Link TO PDF
I used PDFBox 2.0.21
sample code to flatten f