How to export n number columns for PDF in Java? -


i have requirement generate pdf file 120 columns(all columns should on single page).i using itext. when generate pdf columns gets overlapped.

my questions are:

1)is there way put horizontal scroll bar navigate between columns ?

2)how prevent overlapping of columns?

i have seen similar question in site (how export n number columns headings pdf in java?)

but link mentioned in answer there (http://itext-general.2136553.n4.nabble.com/what-is-the-maximum-page-size-for-pdf-in-itext-td2150839.html%22) is inactive.

please suggest me on this.

/* following code set page size. so, if have large number of columns (for eg: 120 in case) ,it automatically show horizontal bar in pdf navigate .*/

rectangle pagesize=new rectangle(9400f,9400f);
document doc=new document(pagesize);

pdfwriter writer=pdfwriter.getinstance(document,baos);
writer.setuserunit(9900f);


// prevent overlapping of columns , set column widths follows

pdfptable=new pdfptable(120); // 120 number of columns in table
table.setwidths(600f);


Comments

Popular posts from this blog

php - Magento - Deleted Base url key -

javascript - Tooltipster plugin not firing jquery function when button or any click even occur -

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -