title: how to verify links in a PDF file
body: <p>I have a PDF file which I want to verify whether the links in that are proper. Proper in the sense - all URLs specified are linked to web pages and nothing is broken. I am looking for a simple utility or a script which can do it easily ?!</p>
  
  <p>Example: </p>
  
  <pre><code>$ testlinks my.pdf
  There are 2348 links in this pdf.
  2322 links are proper.
  Remaining broken links and page numbers in which it appears are logged in brokenlinks.txt
  </code></pre>
  
  <p>I have no idea of whether something like that exists, so googled &amp; searched in stackoverflow also. But did not find anything useful yet. So would like to anyone has any idea about it !</p>
  
  <p>Updated: to make the question clear.</p>