You need to sign in to do that
Don't have an account?
XactiumBen
PDF Generation - Page Breaks and Formatting
I've recently been wanting to generate a PDF from a visualforce page but with page breaks in various places. Is this something that I can do using CSS or will I have to have lots of <br /> tags in my page?
Then, use this <div style="page-break-before:always"> for the starting <div> tag.
The tricky part is ensuring that the text before the closing </div> tag does not exceed a page. Otherwise, you could have two page breaks.
But this works pretty well for me.
Here is a complete example.
http://wiki.apexdevnet.com/index.php/Visualforce_CaseHistoryTimeline
read down to casehistoryprint
and note the css file that goes with it, this has the CSS page syntax
here is another example that uses css along with a pdf render.
Message Edited by mr209204 on 09-18-2008 10:26 AM