function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Srinivas TestingSrinivas Testing 

How to prevent Table Breaking in Pdf format

from image..once table extends to 2nd page , the last border is breaking..Please help me to manage this table wthout breaking border line..
please check my attachment .
User-added image
Sandeep WaliaSandeep Walia
Hi Sriinivas,

You have not mentioned whether the rows in the table are coming dynamically or they will always remain the same,so I am providing ways to tackle both the issues: 
  • If the rows always remain the same you can use the css tag page-break-after:always; on the row where you want to add a page break.(Please refer the below link to see how it works)
  • In case the rows are dynamic you would have to count the number of rows after which the page table is breaking between pages and add condional css for those rows.
Please refer this ( link which explains all the necesaary tools that you would require to create a professional looking PDF.

Hope this helps,