How can I edit the Table of Contents of a PDF file on Linux? I tried
pdfedit but I can't find where the content table list is stored.
PDF is an image format. There is no storage of the contents of the table, only a "picture" of it. It can only be edited if the PDF's OCR can read the table as text, which is unlikely. You will need to use another application to create the table and then convert it to PDF.