I am currently working on adding a table of contents to a concatenated PDF. We iterate over the files and append them into the Document and that works as expected.
Now when it comes to adding a table of contents via the TocInfo + Heading classes that also works as expected. The problem is we would like to add additional columns to the table between the title and the page number if possible.
Is this feasible given the current API? If not what would be the best approach. Ideally I would hold a reference to each item in the table and update it with the destination page once built but I can’t see a way to do that with additional columns. An alternative would be to create multiple Headings for each row BUT all the formatting information is on the TocInfo instance and so I can’t have multiple headings attached to the same table with different formatting.