I am developing a standalone Java application. I want to generate a PDF file using Java code. I have a display form in which all data is retrieved from the database and displayed in a window. Details: customer name, order information, etc.
Now I want to have a button there that says Convert to pdf. I want to convert this to a pdf file with the correct alignment and formatting, for example, tables, font, etc.
What could be the perfect way to do this?
source share