title: How to render part of a page as an image using PDFBox?
body: <p>PDFBox offer functions to render a entire page, but no way to render only a specific rectangle of the page.</p>
  
  <p>It seems the only way to achieve that would be to use <code>PDFRenderer.renderPageToGraphics</code> and configure the <code>Graphics2D</code> object so only the region of interest is rendered, but I can't figure out how to do that.</p>
  
  <p>Another way would be to render the whole page, then extract a sub-image, but I would like to avoid this.</p>