<div dir="ltr"><div class="gmail_default" style="font-family:"times new roman",serif;font-size:large"><font color="#0000ff">Hello all,</font></div><div class="gmail_default" style="font-family:"times new roman",serif;font-size:large"><font color="#0000ff"><br></font></div><div class="gmail_default" style="font-family:"times new roman",serif;font-size:large"><font color="#0000ff">I'm using libpoppler-qt5 to print a slip using QPrinter. I'm running my application on Ubuntu 14.04 64 bit PC and Qt-5.8.</font></div><div class="gmail_default" style="font-family:"times new roman",serif;font-size:large"><font color="#0000ff"><br></font></div><div class="gmail_default" style="font-family:"times new roman",serif;font-size:large"><span style="color:rgb(0,0,255);font-family:"Titillium Web"">I'm displaying a html page using QWebEngineView. This html page contains text and image. I need to print this page with QPrinter with custom paper size ~ 71mmx73mm. I'm doing following steps before printing :</span><br></div><div class="gmail_default"><ol style="font-family:"Titillium Web";box-sizing:border-box;margin-top:0px;margin-bottom:10px"><li style="box-sizing:border-box"><p style="box-sizing:border-box;margin:0px 0px 10px"><font color="#0000ff" size="4">Converting the html contents to pdf using libpoppler's printTopdf().</font></p></li><li style="box-sizing:border-box"><p style="box-sizing:border-box;margin:0px 0px 10px"><font color="#0000ff" size="4">Rendering the pdf pages into QImage using lbpoppler's renderToImage().</font></p></li></ol><p style="font-family:"Titillium Web";box-sizing:border-box;margin:0px 0px 10px"><font color="#0000ff" size="4">Issue I'm facing:</font></p><p style="font-family:"Titillium Web";box-sizing:border-box;margin:0px 0px 10px"><font color="#0000ff" size="4">When I print the page using QPrinter, the font size of the rendered text (as I said before, the html page has both text and image) is small, but the rendered image from html looks alright.</font></p><p style="box-sizing:border-box;margin:0px 0px 10px"><font color="#0000ff" size="4"><font face="Titillium Web"><span style="caret-color: rgb(51, 51, 51);">Kindly help and let me know if I'm doing anything wrong.</span></font></font></p><p style="box-sizing:border-box;margin:0px 0px 10px"><br></p><p style="box-sizing:border-box;margin:0px 0px 10px"><span style="color:rgb(0,0,255);font-family:"Titillium Web";font-size:large">Thanks,</span><br></p><p style="font-family:"Titillium Web";box-sizing:border-box;margin:0px 0px 10px"><font color="#0000ff" size="4">Nara</font></p></div></div>