Hi,
I am did code to generate pdf report for student details.. this code is working fine.. but i want to increase the table size.. the actual desing is not looking good.. can anybody change my code to help me..

So what i sometimes do is nest or group the pieces of code that are related to one thing, to help make it at least visually appear to be organized a bit.

Another idea here, to create a kind of static method that you would pass in an array or list of values, and it would then iterate over the list to do the same operation. in your case this might be helpful if rendering the same kind of data many times in different tables in the same report. but usually this kind of organizing just moves the many lines of code around and doesn't reduce them.

unfortunately that iText API is pretty verbose. I keep meaning to get around to one day creating a kind of HTML or XML meta input language, that would be a kind of common pdf generating engine. I would feed it the high level commands like <table><tr><td>label</td></tr></table> and so on, and it would internally invoke the many individual formatting commands. but I also think the use of a tool like this would be very limited to the exact kinds of reports i am trying to do, everything would need to conform to a simple document convention. But also, I never have time to do this.