Spire.PDF for Java 3.12.6已发布。该版本支持了转换PDF到TIFF,改善了doc.getPages().get(0).isBlank()方法逻辑,实现了提取PDF文本按照段落断行以及读取和写入XMP元数据的功能。此外,该版本还增强了转换PDF到Image/Excel/Word的功能。详情请阅读以下内容。 新功能: 支持了转换PDF到TIFF。 PdfDocument pdf=new PdfDocument(); pdf.loadFromFile("C:/Test.pdf"); pdf.saveToTiff("C:/1.tiff"); pdf.saveToTiff("C:/2.tiff",1,2,TiffCompressionTypes.DEFAULT); 改善了doc.getPages().get(0).isBlank()方法逻辑。 实现了提取PDF文本按照段落断行的功能。 PdfDocument doc = new PdfDocument(); // 加载PDF文档 doc.loadFromFile(InputPath); doc.getConvertOptions().setKeepParagraph(true); File file = new File(OutputPath); file.createNewFile(); FileWriter fw = new FileWriter(file, true); BufferedWriter…