We've been using PrinceXML for a while now to render our Certificates as PDFs, occasionally the certificate "spills over" to create a second page. It's not consistent.
We use a second library to trim off the first page and have realised this may be the cause of a small memory leak.
Any tips about how to do this with PrinceXML in CSS or HTML?
I was hoping the following would do it, but it doesn't:
We use a second library to trim off the first page and have realised this may be the cause of a small memory leak.
Any tips about how to do this with PrinceXML in CSS or HTML?
I was hoping the following would do it, but it doesn't:
// Be compact
@page {
margin: 0;
border: 0;
padding: 0;
}
// Force single page
* {
page-break-inside: avoid;
page-break-before: avoid;
page-break-after: avoid;
}
Edited by oodavid