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
NTNT 

Regard RenderAs='PDF'

Hi All,

 

 

I am creating a page. This page renders as PDF.

 

My requirement is I have two PageBlockTables and these PageBlockTables should always display

on a different page.

Even than my first PageBlockTable doesn't have data, the second PageBlockTable should display on second page.

 

 

Please suggest me, how should I need to design this requirement?

 

 

Thanks

Nitin Gupta

Best Answer chosen by Admin (Salesforce Developers) 
DuFreyDuFrey
You coud use the CSS page-break-before property with the always value. So something like this: <div style="page-break-before:always"></div> would cause a page break.

All Answers

DuFreyDuFrey
You coud use the CSS page-break-before property with the always value. So something like this: <div style="page-break-before:always"></div> would cause a page break.
This was selected as the best answer
NTNT

Thank you very much for your quick response, it's working

 

Nitin Gupta