Vik
Vik

Reputation: 9289

how to generate a print ready format with dynamic contents?

Hello we have a non profit application built in Google App Engine for Java. This application allows people to register as Blood Donors on our system.

As a result we want to email them their print ready e-BloodDonor cards.

What is the way to create such cards where we can define the design of the card and contents are filled dynamically based on registered data?

Please advise

Upvotes: 0

Views: 104

Answers (1)

Haldean Brown
Haldean Brown

Reputation: 12711

You could create the layout in HTML, just like a normal view in your app, and then email them the link to that page to print it out. You could also go the much-more-complex route of generating PDFs or images for each user. PDFBox by Apache is pretty good for PDF generation.

I'd really recommend the HTML route, though, if it works for you. In my experience, it's much easier to do HTML layouts than it is to program PDF layouts in Java.

Upvotes: 2

Related Questions