• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Generating PDF Using Java

 
Ranch Hand
Posts: 391
1
MySQL Database PHP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have build one Online Quiz App , in which I want to give user ability to download his exam result as a PDF.

Showing question with options along with user selection and what was the correct answer for that question.

I also want to show images in the pdf.

Looks like iText is good to do that .

Will I have to set the position of all these elements manually in the PDF.

That will be a pain
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

That will be a pain



Yes, it will be. You are in for a LOT of tedious fiddling. My advice: start simple and stay away from the servlet environment until you have everything working with mock data.

I used the Apache FOP project - found here - so I can't comment on iText.

I found "Definitive XSL-FO" book by Holman to be a great reference - that was a while ago, perhaps there is an updated version. There are a lot of tricky details.

Bill
 
Don't mess with me you fool! I'm cooking with gas! Here, read this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic