<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:clement.igonet&#64;galaxysemi.com" title="Clement IGONET &lt;clement.igonet&#64;galaxysemi.com&gt;"> <span class="fn">Clement IGONET</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - PDF 'printing' produces bad content"
   href="https://bugs.webkit.org/show_bug.cgi?id=79926">bug 79926</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
               &nbsp;
           </td>
           <td>clement.igonet&#64;galaxysemi.com
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - PDF 'printing' produces bad content"
   href="https://bugs.webkit.org/show_bug.cgi?id=79926#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - PDF 'printing' produces bad content"
   href="https://bugs.webkit.org/show_bug.cgi?id=79926">bug 79926</a>
              from <span class="vcard"><a class="email" href="mailto:clement.igonet&#64;galaxysemi.com" title="Clement IGONET &lt;clement.igonet&#64;galaxysemi.com&gt;"> <span class="fn">Clement IGONET</span></a>
</span></b>
        <pre>Workaround:
--- qt-everywhere-enterprise-src-5.2.1/qtbase/src/gui/painting/qpdf.cpp    2013-08-25 22:04:41.000000000 +0200
+++ qt-everywhere-enterprise-new-5.2.1/qtbase/src/gui/painting/qpdf.cpp    2013-11-04 10:40:37.861325437 +0100
&#64;&#64; -1061,7 +1061,16 &#64;&#64;

     if (d-&gt;simplePen) {
         // draw strokes natively in this case for better output
+        QBrush oldBrush = d-&gt;brush;
+        if (d-&gt;opacity != 1.0 &amp;&amp; !d-&gt;hasBrush) {
+            d-&gt;brush = d-&gt;pen.brush();
+            setBrush();
+        }
         *d-&gt;currentPage &lt;&lt; QPdf::generatePath(p, QTransform(), d-&gt;hasBrush ? QPdf::FillAndStrokePath : QPdf::StrokePath);
+        if (oldBrush != d-&gt;brush) {
+            d-&gt;brush = oldBrush;
+            setBrush();
+        }
     } else {
         if (d-&gt;hasBrush)
             *d-&gt;currentPage &lt;&lt; QPdf::generatePath(p, d-&gt;stroker.matrix, QPdf::FillPath);</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>