Spire.PDF for Python 10.8.1 已经正式发布。新版本支持将 imageInfo[i].Image 返回为 byte[] 类型。此外,查找高亮文本,高亮位置不准确的问题也被成功修复。详情请阅读下面的内容。 新功能: 支持将 imageInfo[i].Image 返回为 byte[] 类型。 byteResult = imageInfo[i].Image.ToArray() fileName = outputFile_1 + "Bug_6888_{0:d}.png".format(i) with open(fileName,'wb') as f: f.write(byteResult) 同步了 PdfTextReplaceOptions 类。 pdf=PdfDocument() pdf.LoadFromFile(inputFile) page = pdf.Pages[0]…