A "
<span style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">given rectangle</span> " would be an enormous bonus (thought that would be some time off), but a straight page dump would be more than adequate even as a first step.<div>
<br></div><div>Thinking of just whole page, perhaps rendered to QImage (in  memory?) as the target, looks like it can work out format for save on file dialogue requested extension if no format is specified.</div><div><br>
</div><div><table style="background-color: rgb(230, 231, 232); border-top-left-radius: 7px; border-top-right-radius: 7px; border-bottom-right-radius: 7px; border-bottom-left-radius: 7px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(230, 230, 230); border-right-color: rgb(230, 230, 230); border-bottom-color: rgb(230, 230, 230); border-left-color: rgb(230, 230, 230); font-size: 11px; margin-bottom: 15px; margin-top: 15px; margin-right: 15px; margin-left: 15px; color: rgb(54, 53, 52); font-family: Verdana; ">
<tbody><tr><td style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: arial, sans-serif; padding-top: 3px; padding-right: 5px; padding-bottom: 3px; padding-left: 10px; text-align: right; vertical-align: top; ">
Bool</td><td style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: arial, sans-serif; padding-top: 3px; padding-right: 15px; padding-bottom: 3px; padding-left: 0px; "><b><a href="http://doc.qt.nokia.com/latest/qimage.html#save" target="_blank" style="color: rgb(76, 0, 51); text-decoration: none; ">save</a></b> ( const QString & <i>fileName</i>, const char * <i>format</i> = 0, int <i>quality</i> = -1 ) const</td>
</tr></tbody></table><div><span style="color: rgb(54, 53, 52); font-family: Verdana; font-size: 13px; line-height: 20px; background-color: rgb(230, 231, 232); ">"If </span><i style="color: rgb(54, 53, 52); font-family: Verdana; font-size: 13px; line-height: 20px; background-color: rgb(230, 231, 232); ">format</i><span style="color: rgb(54, 53, 52); font-family: Verdana; font-size: 13px; line-height: 20px; background-color: rgb(230, 231, 232); "> is 0, </span><a href="http://doc.qt.nokia.com/latest/qimage.html" style="color: rgb(76, 0, 51); text-decoration: none; font-family: Verdana; font-size: 13px; line-height: 20px; background-color: rgb(230, 231, 232); ">QImage</a><span style="color: rgb(54, 53, 52); font-family: Verdana; font-size: 13px; line-height: 20px; background-color: rgb(230, 231, 232); "> will attempt to guess the format by looking at </span><i style="color: rgb(54, 53, 52); font-family: Verdana; font-size: 13px; line-height: 20px; background-color: rgb(230, 231, 232); ">fileName</i><span style="color: rgb(54, 53, 52); font-family: Verdana; font-size: 13px; line-height: 20px; background-color: rgb(230, 231, 232); ">'s suffix.</span> "<br>
<br>Makes it all a bit more painless perhaps?<br><br>Paul</div><div><br><div class="gmail_quote">On 4 November 2011 19:26, Charlie Sharpsteen <span dir="ltr"><<a href="mailto:chuck@sharpsteen.net">chuck@sharpsteen.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br><br><div class="gmail_quote"><div class="im">On Thu, Nov 3, 2011 at 11:11 PM, Paul A Norman <span dir="ltr"><<a href="mailto:paul.a.norman@gmail.com" target="_blank">paul.a.norman@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div><div>>The best time to work on this would probably be alongside text selection and copy/paste.
</div><div><br></div></div><div>As in ...?</div><div><table style="border-top-left-radius:7px;border-top-right-radius:7px;border-bottom-right-radius:7px;border-bottom-left-radius:7px;background-color:rgb(230, 231, 232);border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:rgb(230, 230, 230);border-right-color:rgb(230, 230, 230);border-bottom-color:rgb(230, 230, 230);border-left-color:rgb(230, 230, 230);font-size:11px;margin-bottom:15px;margin-top:15px;margin-right:15px;margin-left:15px;color:rgb(54, 53, 52);font-family:Verdana">



<tbody><tr><td style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:3px;padding-right:5px;padding-bottom:3px;padding-left:10px;text-align:right;vertical-align:top">
Bool</td><td style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:3px;padding-right:15px;padding-bottom:3px;padding-left:0px"><b><a href="http://doc.qt.nokia.com/latest/qimage.html#save" style="color:rgb(76, 0, 51);text-decoration:none" target="_blank">save</a></b> ( const QString & <i>fileName</i>, const char * <i>format</i> = 0, int <i>quality</i> = -1 ) const</td>


</tr></tbody></table></div></blockquote></div><div>You would want to use methods from QGraphicsView or QGraphicsScene to render a given rectangle using a painter that is targetting a QImage:</div><table style="border-top-left-radius:7px 7px;border-top-right-radius:7px 7px;border-bottom-right-radius:7px 7px;border-bottom-left-radius:7px 7px;background-color:rgb(230, 231, 232);border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:rgb(230, 230, 230);border-right-color:rgb(230, 230, 230);border-bottom-color:rgb(230, 230, 230);border-left-color:rgb(230, 230, 230);font-size:11px;margin-bottom:15px;margin-top:15px;margin-right:15px;margin-left:15px;color:rgb(54, 53, 52);font-family:Verdana">


<tbody><tr><td style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:3px;padding-right:5px;padding-bottom:3px;padding-left:10px;text-align:right;vertical-align:top">

void</td><td style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:3px;padding-right:15px;padding-bottom:3px;padding-left:0px"><b><a href="http://doc.qt.nokia.com/4.7/qgraphicsview.html#render" style="color:rgb(0, 115, 47);text-decoration:none" target="_blank">render</a></b> ( QPainter * <i>painter</i>, const QRectF & <i>target</i> = QRectF(), const QRect & <i>source</i> = QRect(), Qt::AspectRatioMode <i>aspectRatioMode</i> = Qt::KeepAspectRatio )</td>


</tr></tbody></table><div>Then the image could be passed to the clipboard.</div><div class="im"><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div></div>

<div> Thanks -bit question not relevant for now then - relates to the pixel depth format that the "image" as it were is being rendered at when returned by pdf renderer.</div><span><font color="#888888">
<div><br></div><div>Paul</div></font></span></blockquote><div><br></div></div><div>Ahh... those decisions are still out of our hands. The bit depth of the images is controlled by the rendering library---which is still Poppler at the moment but could change to MuPDF in the distant future.</div>
<span class="HOEnZb"><font color="#888888">

<div><br></div><div>-Charlie</div></font></span></div>
</blockquote></div><br></div></div>