title: Programatically edit hyperlinks inside a PDF
body: <p>I am trying to find a way to programatically edit the links inside an already generated PDF. My stack is just Node.js for now but I am open to any kind of tech that you believe can do this. Doing some searches around this on stackoverflow and other websites lead me to things like <a href="http://www.debenu.com/products/development/debenu-pdf-library/" rel="nofollow">Debenu's PDF Library</a> but this is not an opensource solution and it is a .NET solution.</p>
  
  <p>Doing a <code>strings</code> on one of my own PDFs shows me this kind of strings :</p>
  
  <pre class="lang-none prettyprint-override"><code># strings mypdf.pdf | grep tfoureur -C2
  --
  61 0 obj
  &lt;&lt;/IsMap false/S/URI/URI(http://stack.im/tfoureur)&gt;&gt;
  endobj
  --
  </code></pre>
  
  <p>I do not know if it would be a clean solution to just walk the binary searching for these strings and edit them in place. I also do not know if this is the standard format and it would work all the time or not. </p>
  
  <p>Do you recommend a particular approach ?</p>