Reputation: 61
I have a Person
class with name
, national_Id
, age
, photo
and job
as member variables and I want to print some kind of voucher or FICHE with the personal data of each person.
I don't want to use the JavaScript print window function, I want to print it as PDF. I'm using JEE: Struts+Hibernate.
Upvotes: 0
Views: 884
Reputation: 693
You can use itext pdf to print the data to a pdf file..
http://www.vogella.com/tutorials/JavaPDF/article.html
and then go through this link..
https://stackoverflow.com/a/11138664/456135
Upvotes: 1