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
lzanotti1987lzanotti1987 

Problem on Visualforce Page i can't go in the second page

Hi,
i have a Visualforce page that build a pdf preview.
I use a <panelGrid> in order to display a table and inside  some <outputtext>: i would like that when the page ended the entire panelgrid goes in the next page and not only some outputtext. How an i perform this operation? I tried to use  <div> tag with attribute "display:block" but unfortunately i can't do it.

Could you help me?
Regards

Luca 

sekharasekhara

Hi,

 

Can u please explain in detail

Saurabh DhobleSaurabh Dhoble

Try out the page break CSS property on your DIV:-

 

<apex:page renderas="pdf">
<div style="page-break-after:always;">
This is page one
</div>
<div style="page-break-after:always;">
This should be rendered as page two
</div>
And, finally... page three
</apex:page>

 

You can refer to the original article @ http://techblog.appirio.com/2008/09/page-breaks-in-visualforce-pdf.html