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
Federico LarsenFederico Larsen 

renderas PDF force new page

Hi,

 

I need to generate a two pages pdf file with a VisualForce page.

Is there any way to force a new page?

 

best regards and thanks in advance for any insight.

 

Best Answer chosen by Admin (Salesforce Developers) 
stephanstephan

You can use the CSS page-break-after property:

 

http://www.w3schools.com/CSS/pr_print_pageba.asp

All Answers

stephanstephan

You can use the CSS page-break-after property:

 

http://www.w3schools.com/CSS/pr_print_pageba.asp

This was selected as the best answer
Federico LarsenFederico Larsen

Thank you so much!!!!

Greate tip !!!

It solves my problem.