Fitting data of a table into A4 size

2003-12-10 Thread Ngo Thanh Hien
Dear FOP experts:

I'm now building an application that generate report in PDF format. I'm 
using FOP.
A requirement of report format is all report data must fit into a PDF page (A4 
for example) in both vertical and horizontal sides. 

This is my solutions: We calulate maximum number of characters on a line in 
horizontal side, number of line in vertical side, after that we calculate the 
width and the height of a character and calculate the font size follow these 
width and height.

Could you have an idea about this issue or suggest another solution?

Best regards,

Hiennt




Fit data into a PDF page

2003-09-18 Thread Ngo Thanh Hien
Dear all,

I am now transforming XML data into PDF by FOP (XML- XSL-FO -PDF), I 
don't know how to fit dynamic data into a page (table for example)

in both vertical and horizontal, Will I change font size or ...? if have to 
change font size then how to know suitable font size, Could you help me a 
solution about this problem?

Many thanks

Hiennt