<table><tr><td style="">sander added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D20351">View Revision</a></tr></table><br /><div><div><p>I like the color part of this patch.</p>

<p>As for the line width:  As mentioned, '3' is arbitrary.  You need to find a width that takes current dpi into account.  Ideally, the width should be what later gets written into the pdf file.</p>

<p>The fact that the rectangle is currently not completely drawn sounds like a Qt bug.  What is the pen width without your patch?  Even if it has width 0 it should paint a 1-pixel line.  Or is the page downscaled somewhere after rendering?</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R223 Okular</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D20351">https://phabricator.kde.org/D20351</a></div></div><br /><div><strong>To: </strong>ahmedbilal, Okular, okular-devel, ngraham<br /><strong>Cc: </strong>sander, aacid, okular-devel, joaonetto, tfella, ngraham, darcyshen<br /></div>