Forum How do I...?

Avoid page break when naming pages

cristiantx
Hello folks, I have this big dataset PDF that have a specific formatting. Everything work as charm, except that naming the pages is generating a blank page at the end of the document. Is there any way to avoid this? I've already tried all that came to my mind. The issue is that the document finished with that named page. If I add content after the named page it's ok. But not what I need.


Here is what my code looks like, nothing fancy

.content-wrapper {
    page: brands;
    page-break-after: avoid;
}

.brand-group {
    prince-page-group: start;
}

@page brands:first {
     @top { content: none; }
     padding-top: 0;
}


Thanks!
mikeday
Are there any elements following the named page, or invisible text like non-breaking space characters?
cristiantx
Hey Mike, this is my HTML, I've even tried with removing the html, body tags after .content-wrapper without look

<!DOCTYPE html>
<html>
   <head>
      <title>Page Title</title>
   </head>
   <body>
        <div class="cover-page">
            [...]
        </div>
        <div class="content-wrapper">
           [...]
        </div>
   </body>
</html>
mikeday
Strange, that should work fine. Would you be able to email me (mikeday@yeslogic.com) the HTML and CSS?
cristiantx
I just found that the issue, somehow was caused by the font I was using. Changed the font and worked.