I am trying to fetch the table of content from a pdf file. When I use outlines = doc.get_outlines(), I get the following PDFNoOutlines exceptio
outlines = doc.get_outlines()