为什么导入pom坐标后好多方法爆红,依赖中没有该类或者该方法

生成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中没有

@huhu2024

我们担心我们无法正确理解您在这里问的是什么。您能否再解释一下,以便我们为您提供相应的帮助。