You can print it all at once,
Of course, if there is a problem with page number setting and double-sided printing.
You can do this:
Make a copy of a document.
Click the mouse on the table of contents page to print the current page, thus printing the table of contents.
Then, delete the table of contents and print out the remaining text.