I’m developing an application that merges multiple pdf files into one along with the bookmarks for each file. I need to outsource one of the functions because I'm not able to figure it out myself.
The file I generate looks like this: [url removed, login to view]
The file with toc should look similar to this (layout, not the font style): [url removed, login to view]
What you will be doing is creating the table of contents that goes on the first page.
The requirements are:
-The toc will be based of the bookmarks.
-The toc text will be linked to the proper page so the user can click on the text to go to the page.
-The existing bookmarks in [url removed, login to view] must remain.
-The page numbers are already calculated, so do don't have to worry about that.
-The working code must be part of the [url removed, login to view] project files I give you. I've tried several snippets without any luck; I would like it to just work without me having to adapt the code.
If you have any questions just ask me.