I'm working on small project in java, there I want to fetch the contents from a database and write them into a PDF file.
I tried to googling and came up with iText Library.
Can anyone guide to create a PDF that looks like the enclosed image
PS: I'm pretty new to JAVA.and it's my first java project.
I've done a quick implementation of most of your use-case.
Here's the code:
First we define a small class that acts as a single record in the invoice.
Then I've created a method for each of the big blocks in the invoice.
Starting with the title:
Then adding the little paragraph of text that's underneath the title:
And then adding a table:
The main method then looks like this: