Create document templates in Java

3

I'm creating a Java system with Swing, where I would have document templates, and would populate with user-entered data in a form I've already created, so that it generates a template PDF filled with the data.

I tried to do it in a "raw" way, saving the default text in TXT, putting "wildcards" type, where for date, I inserted $data$ and then I would filter using pattern , however, I see which in this way became unfeasible.

How to make these templates more functional?

    
asked by anonymous 31.07.2015 / 20:31

1 answer

3

A better solution is to use a reporting component, such as Jasper.

It allows the creation of templates, either at runtime or development. It is very powerful, and allows reports to be exported in various formats, including PDF or other format you develop.

Follow his site:

Jasper Reports

    
31.07.2015 / 20:36