I am developing a program in Javafx and in this I have a client registry. In each entered record there is the possibility of printing a document related to it, in which I will have to fill in certain data automatically (name, address ...) and send it to the printer. Therefore, I need to create a template for the document and from Java to pass the necessary data to it.
The closest thing I've ever done is creating reports using Jasperreports, but I do not have much experience with it either. With my little experience I have discarded this possibility since the document is not a list of data.
I thought that maybe using pdf or word could do it. I have found something about pdf called fdf that I thought was a bit what I was looking for but I am not sure and I have not found any explanation or any example where what I want to do is done. I also felt that in Word you can create fields or variables that I can then replace from Java with the real value. But looking in google I have not found anything to help me see how it is done.
Any idea how I can do it and what tool do I have to use for it?