I need to open a pdf preview of my offer generated by a custom button on opportunity page.
[![enter image description here][1]][1]
Currently this works as normal html page, but my problem is that I am not able to manage page interruptions.
In preview mode you can edit some fields
HTML code:
page[size="A4"] {
width: 21cm;
height: 29.7cm;
}
page {
font-family: "Arial";
font-size: 12pt;
letter-spacing: 1px;
background: white;
display: block;
margin: auto;
margin-bottom: 0.5cm;
box-shadow: 0 0 0.5cm rgba(0,0,0,0.5);
text-align:justify;
line-height: 150%;
}
<page size="A4">
Page 1 ...some text here...
</page>
<page size="A4">
Page 2...some text here...
</page>
How to divide the text into separate pages? Any way to solve this?