<dependency>
<groupId>e-iceblue</groupId>
<artifactId>spire.pdf</artifactId>
<version>9.2.1</version>
</dependency>
///创建一个 PdfDocument 对象
PdfDocument doc = new PdfDocument();
//加载 PDF 文件
doc.loadFromFile("E:\\tes.pdf");
//将PDF转换为Docx格式文件并保存
doc.saveToFile(wordPath, FileFormat.DOCX);
doc.close();
java.lang.RuntimeException: Invalid/Unknown/Unsupported format
at com.spire.pdf.packages.sprewe.spr⌺≇(Unknown Source)
at com.spire.pdf.packages.sprewe.spr≂≇(Unknown Source)
at com.spire.pdf.packages.sprjme.<init>(Unknown Source)
at com.spire.pdf.packages.sprwne.<init>(Unknown Source)
at com.spire.pdf.widget.PdfDocumentWidget.spr▐∭(Unknown Source)
at com.spire.pdf.widget.PdfDocumentWidget.<init>(Unknown Source)
at com.spire.pdf.widget.PdfDocumentWidget.<init>(Unknown Source)
at com.spire.pdf.PdfDocument.loadFromFile(Unknown Source)
at icefire.stack.util.SpirePDFUtil.pdf2doc(SpirePDFUtil.java:38)
at icefire.stack.util.SpirePDFUtil.main(SpirePDFUtil.java:18)