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
Joe GaskaJoe Gaska 

Page Breaks On Quotes : How?


We are producing some great quotes using standard SFDC quoting and the only thing we cannot do to meet the customers needs is inserting a page break in a PDF that is generated.  It absolutely kills us that we might have to write a VF page just simply to insert a page break.  Has anyone come up with a solution? 

 

Also, would be absolultey great if the pages numbered as well but that would be gravy.  Bottle of your favorite wine to anyone that emails us a solution.  Support@ioniasolutions.com

Starz26Starz26

Using CSS this is supposed to work.....

 

This example insert a page break Before ANY <h1> level element

 

<style>
@media print
{
h1 {page-break-before:always}
}
</style>