Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

PdfTable in multiple pages

 
MohamedAhmed Ibrahim
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to split a PdfTable into multiple pages and the header of the table recur in each page. Does anyone know how ?

table.setTotalWidth(document.right() - document.left()) ;
table.writeSelectedRows(0 , table.size() , document.left(), document.right() , writer.getDirectContent()) ;
document.newPage() ;

I am using itext
table is an object of class PdfTable ,writer of PdfWriter and document of Document

Thanks for you help
 
crispy bacon. crispy tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!