开发者

How to export n number columns as headings for PDF in Java?

Can anyone tell me how to export n number columns as headings for PDF in Java?

Actually user uploads a file in CSV. I need to export that file into PDF. The problem is if the CSV file has 1000 columns as headings then how to handle while exporting to PDF.

Edit: Yeah I am asking how to implement the layout, means we can't put all 1000 columns as headings in one page... can we add scroller for pdf page?

Edit2: I am using itext for pdf generation. How can I find the max exceed limit. No problem if horizontal scrolling occurs. The rows will be also in thousands. Here I am able to generate the pdf fi开发者_开发技巧le but if it exceeds more than 8 or 10 it the columns are coming together they were mixing so to avoid that how can I produce a horizontal scroller?


I think there are few things which should be considered.

  1. Find out the maximum supported pdf page width, since you cant exceed this if its a limit.
  2. Change your requirement if you want to include 1000 columns in pdf page, since user will be annoyed by horizontal scrolling.
  3. If your individual column have say 10 to 15 rows/records, you can add your columns one after another in vertical position.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜