Scripting PDF Links to other sections of the same file
I have a ~450 page PDF contract that was created without links to other sections of the contract. I've added in bookmarks for each sub section, as well as having the table of contents link to the correct page in the file. However, within the text, there are references to other parts of the contract. For example:
Notwithstanding the terms of Section 5.B.6. (Name of Section)...
Which is in reference to another section, and
Notwithstanding the provisions of Paragraph V.3.a. above, and with the concurrence of
which refers to a paragraph in the same section.
I'd like to have "Section 5.B.6." link to that section within the PDF, and "Paragraph V.3.a." also link to that paragraph. I can add those links by hand, but that would take forever in a contract of this size, so I was hoping there was a way to automate it, perhaps with a filter looking for patterns similar to "Section #.X.#." and "Paragraph X.#.x".
All of the sections and paragraphs have already been bookmarked as "#.X.#.x (Title)" but that can be renamed if necessary.
I'm on Adobe Acrobat X, but can purchase new software if it's necessary.