生成pdf文件目录的时候, com.aspose.pdf.TableOfContents tableOfContents = new com.aspose.pdf.TableOfContents();
tableOfContents.setTitle(“Table of Contents”); //设置目录的标题
tableOfContents.setDisplayPageNumbers(true); //显示页码
//创建一个部分
com.aspose.pdf.Section section = pdfDocument.getSections().add();
TableOfContents和Section就显示在com.aspose.pdf中没有