Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Fit data in a PDF page

 
Ngo Thanh Hien
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,
I generate PDF report by transform XML data into XSL-FO then use Apache FOP to transform into PDF, I didn't know how to fit data (table for example) in a page, Could you help me a solution for this problem ?
Many thanks!
Hien
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the 'ranch, Hien.
I haven't done much with FOP but I think this example shows nicely how you define the width for a table so that it's scaled to fit the page width.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic