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.)
What I would like to do is as follows:
Mark the target locations in the SSRS report by setting their DocumentMapLabel property.
Generate the pdf in the usual fashion, either from the report server or a ReportViewer control. (This will be in c#.)
Open the pdf in my hypothetical code.
Insert a blank page at or near the front.
Scan the pdf for DocumentMapLabels (and, ideally, detect which page
they're on.)Populate the blank page with links to the various sections.
Is this possible?