<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 13 Dec 2023 at 21:13, Nyall Dawson <<a href="mailto:nyall.dawson@gmail.com">nyall.dawson@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 13 Dec 2023, 8:46 pm Régis Haubourg via QGIS-PSC, <<a href="mailto:qgis-psc@lists.osgeo.org" target="_blank">qgis-psc@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>

  
    
  
  <div>
    <p>Hi Ale, <br>
    </p>
    <p>thanks lot for this work.</p>
    <p>If I understand correctly, the path to circumvent html
      vectorisation through intermediate pdf might work but brings a
      one-man library in the loop and a fragile dependency to the pdf
      format.</p></div></blockquote></div></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br></blockquote></div></div></div></blockquote><div><br></div><div>I think it's also worth pointing out that this roundabout approach via a temporary PDF export is exactly what Qt itself does for print support from webengine:</div><div><br></div><div><a href="https://doc.qt.io/qt-6/qwebengineview.html#print">https://doc.qt.io/qt-6/qwebengineview.html#print</a></div><div><br></div><div>"Renders the current content of the page into a temporary PDF document, then prints it using printer."</div><div><br></div><div>(this method also comes with a warning: "Note: This function rasterizes the result when rendering onto printer. Please consider raising the default resolution of printer to at least 300 DPI or using printToPdf() to produce PDF file output more effectively.". This is why we can't use it along with a custom qprinter to get vector based rendering, and why we need the separate library for this).</div><div><br></div><div>Nyall</div><div><br></div><div> </div></div></div>