How to use Java to fill in a form fillable PDF?

I’m trying to make a program that fills in a D&D 5e character sheets. Does anyone know of a way to fill in form fillable PDFs using Java? If not what else could be used?