For one of my Flutter application, I needed to generate a pdf file containing user information. It consisted in…