https://medium.com/@pdfflow/how-to-create-a-document-with-an-automatic-table-of-content-using-the-pdfflow-library-d1cf56644ea5