Fixed bug Pagebreak renders into img and doesn't print to PDF (#6626)