Can't generate complete data to PDF file in java

前端 未结 2 659
时光取名叫无心
时光取名叫无心 2021-01-25 07:07

I have a jtable that i\'m using to display some data. Say I have around 200 rows of data. I am able to generate the pdf, by using the iText libra

2条回答
  •  我在风中等你
    2021-01-25 07:35

    PdfAction action = PdfAction.gotoLocalPage(1, pdfDest, writer);
    

    Here you use only one page to write the content. So iText can not write the content in next page. gotoLocalPage method only acted in only specific page. Please refer the below link and change your code...

    Just gothrough this page

提交回复
热议问题