For custom software, you need to get in touch with the software developer. We don't know how this script works and what kind or how much control it gives you to adjust for e.g. the size of the TOC.
Karl Heinz Kremer
PDF Acrobatics Without a Net
PDF Software Development, Training and More...
http://www.khkonsulting.com