title: Adding document link in pdf by Migradoc
body: <p>I use PdfSharp/Migradoc to generate PDF file in c#, now i tried to add document link inside the pdf file, basically it's to create a table of items, and click the item name to navigate to another detail page. I tried to use the Migradoc <code>Paragraph.AddHyperlink()</code> method, below it's the code used</p>
  
  <pre><code>Paragraph p = cell.AddParagraph();
  
  Hyperlink link = p.AddHyperlink(tmp_value, HyperlinkType.Bookmark);
  link.AddText(tmp_value);
  link.AddPageRefField(some_bookmark);
  </code></pre>
  
  <p>My issue is this navigation page is created before the bookmarks are generated later on, after execution, the link is not appeared and only error message like "[item name] the bookmark [some_bookmark] is not defined", anyone can highlight me what's the proper way to acheve this? thanks.</p>