title: Render PDF as image and extracting hyperlinks
body: <p>I use imagemagick to render a PDF (generated by pdfLaTex) as an image:</p>
  
  <pre><code>convert -density 120 test.pdf -trim test.png
  </code></pre>
  
  <p>Then I use this image in an HTML file (in order to include latex code in an own wiki engine).</p>
  
  <p>But of course, the PNG file doesn't have any hyperlink the PDF file contains.</p>
  
  <p>Is there any possibility to extract the coordinates and target URLs of the hyperlinks too, so I can build a HTML <a href="http://en.wikipedia.org/wiki/Image_map" rel="nofollow">image map</a>?</p>
  
  <p>If it makes a difference: I only need external (http://) hyperlinks, no PDF-internal hyperlinks. A text-based solution like <code>pdftohtml</code> would be unacceptable, since the PDFs contain graphics and formulars too.</p>