title: Is this TOC scenario possible using c# and iTextSharp?
body: <p>I've just downloaded iTextSharp and before I put a lot of effort into this I'd like to know if this scenario is possible with it.  We have a client that is insisting that their SSRS report PDFs contain a table of contents, preferably with page numbers.  The various components of these reports have highly variable lengths so we can't hard code actual page numbers.  As you all probably know, there is no direct way to create a Table of Contents in SSRS.  (We've even had a special session with the Microsoft rep about this.)</p>
  
  <p>What I would like to do is as follows:  </p>
  
  <ul>
  <li><p>Mark the target locations in the SSRS report by setting their
  DocumentMapLabel property.  </p></li>
  <li><p>Generate the pdf in the usual fashion, either from the report server 
  or a ReportViewer control. (This will be in c#.)</p></li>
  <li><p>Open the pdf in my hypothetical code.</p></li>
  <li><p>Insert a blank page at or near the front.</p></li>
  <li><p>Scan the pdf for DocumentMapLabels (and, ideally, detect which page<br>
  they're on.)</p></li>
  <li><p>Populate the blank page with links to the various sections.</p></li>
  </ul>
  
  <p>Is this possible?</p>