首页 > 编程语言 >Spire.Office for Java 9.5.0 is released

Spire.Office for Java 9.5.0 is released

时间:2024-05-30 18:32:37浏览次数:14  
标签:documents Java Spire released converting PDF issue

Spire.Office for Java is a combination of Enterprise-Level Office Java APIs offered by E-iceblue. It includes Spire.Doc for Java, Spire.XLS for Java, Spire.Presentation for Java, Spire.PDF for Java and Spire.Barcode for Java.

Developers can use Spire.Office for Java to perform a wide range of office document operations in Java applications, such as opening, creating, modifying, converting and printing Word, Excel, PowerPoint and PDF documents, generating and scanning 1D&2D barcodes.

As an independent Office Java library, Spire.Office for Java doesn't need Microsoft Office to be installed on either the development or target systems.

the release of Spire.Office for java 9.5.0. In this version, Spire.PDF for Java retrieving JavaScript content from PDF documents; Spire.Doc for java supports ignoring comparing headers and footers when comparing PDF documents; Spire.XLS for Java enhances the conversion from Excel to PDF. Besides, a lot of known issues are fixed successfully in this version. More details are listed below.

Here is a list of changes made in this release

Spire.PDF for Java

CategoryIDDescription
New featureSPIREPDF-6644Adds a constructor method "PdfInkAnnotation ink = new PdfInkAnnotation(Rectangle2D rect, List<int[]> inkList)" to address the issue of PdfInkAnnotation not displaying in the browser.
PdfDocument doc = new PdfDocument();
PdfPageBase pdfPage = doc.getPages().add();
ArrayList inkList = new ArrayList();
int[] intPoints = new int[]
     {
         100,800,
         200,800,
         200,700
     };
inkList.add(intPoints);
Rectangle2D rect = new Rectangle2D.Float();
rect.setFrame(new Point2D.Float(0, 0), new Dimension((int)pdfPage.getActualSize().getWidth(), (int)pdfPage.getActualSize().getHeight()));
PdfInkAnnotation ink= new PdfInkAnnotation(rect,inkList);
ink.setColor(new PdfRGBColor(Color.RED));
ink.getBorder().setWidth(12);
ink.setText("e-iceblue");
pdfPage.getAnnotations().add(ink);
doc.saveToFile("inkAnnotation.pdf");
New featureSPIREPDF-6672Supports retrieving Javascript content from PDF documents.
PdfPageBase page = pdf.getPages().get(0);
StringBuilder stringBuilder = new StringBuilder();
java.util.List<PdfJavaScriptAction> list = pdf.getNames().getJavaScripts();
stringBuilder.append(list.get(2).getScript()+"\r\n");
list.get(0).setScript("new javaScript code");
PdfAnnotationCollection annotationCollection = page.getAnnotations();
for(int i = 0;i < annotationCollection.getCount();i++){
    PdfLinkAnnotationWidget annotation = (PdfLinkAnnotationWidget) annotationCollection.get(i);
    stringBuilder.append("Method name:"+"\r\n");
    String script = ((PdfJavaScriptAction) annotation.getAction()).getScript();
    stringBuilder.append(script+"\r\n");
}
BugSPIREPDF-6662
SPIREPDF-6667
Fixes the issue that the text in tables was not being extracted completely.
BugSPIREPDF-6675Fixes the issue that the application threw a "java.lang.NullPointerException" exception when saving a PDF document after flattening form fields.

Spire.Doc for Java

CategoryIDDescription
New featureSPIREDOC-10156Supports ignoring headers and footers when comparing PDF documents.
CompareOptions options=new CompareOptions();
Options.IgnoreHeadersAndFooters=true;//Default is false
BugSPIREDOC-9330
SPIREDOC-10446
Fixes the issue that the text was garbled after converting a DOCX document to a PDF document.
BugSPIREDOC-9309Fixes the issue that the content was messed up after converting a DOCX document to a PDF document.
BugSPIREDOC-9349Fixes the issue that the content appeared different when it was opened with WPS tool after loading and saving the document.
BugSPIREDOC-10137Fix the issue that the text direction of the vertical text box was incorrect after converting a Word document to a PDF document.
BugSPIREDOC-10373Fix the issue that the program threw "cannot be cast to java.lang.Float" exception when comparing Word documents.
BugSPIREDOC-10383Fixed the issue that the paragraph alignment was incorrect after converting HTML to Word documents.
BugSPIREDOC-10408Fixed the issue that the program threw "Specified argument was out of the range of valid values" exception when loading Word documents.
BugSPIREDOC-10455Fix the issue that paging was incorrect after converting Word documents to PDF documents using WPS rules.
BugSPIREDOC-10459Fixed the issue that images were rotated after converting Word documents to PDF documents.
BugSPIREDOC-10466Fix the issue that extra content appeared after converting Word documents to PDF documents.
BugSPIREDOC-10481Fix the problem that the program threw a "NullPointerException" when converting Word documents to PDF documents.
BugSPIREDOC-10485Fix the issue that extra blank pages appeared after converting Word documents to PDF documents using WPS rules.
BugSPIREDOC-10513Fix the issue that the content of the drop-down box was garbled after converting a Word document to a PDF document.

Spire.XLS for Java

CategoryIDDescription
BugSPIREXLS-5215Fixes the issue that the program threw "NullPointerException" when converting an Excel document to an HTML document.
BugSPIREXLS-5219Fixes the issue that the content of charts was incorrect after converting them to pictures.
BugSPIREXLS-5221Fixes the issue that the program threw "NullPointerException" exception when calling calculateAllValue() method to calculate formulas and convert Excel documents to pictures.
BugSPIREXLS-5222Fixes the issue that the chart content was incorrect after converting an Excel document to a PDF document.
BugSPIREXLS-5224Fixes an issue that the chart style was incorrect after loading and saving an XLSM document.
BugSPIREXLS-5230Fixes the issue that the XLOOKUP formula was calculated incorrectly.

Spire.Presentation for Java

CategoryIDDescription
BugSPIREPPT-2466Optimizes the time consumption for converting PPTX to PDF.
BugSPIREPPT-2471Fixes the issue that the comments were incorrect after merging multiple PPTX files.
BugSPIREPPT-2486Fixed the issue that the application threw the "StringIndexOutOfBoundsException" when converting PowerPoint to HTML.
BugSPIREPPT-2504Fixes the issue that charts were blurred after converting PowerPoint to images.

标签:documents,Java,Spire,released,converting,PDF,issue
From: https://blog.csdn.net/john_dwh/article/details/139308439

相关文章

  • Java面试进阶指南:高级问题与解答精粹(一)
    Java面试问题及答案1.什么是Java内存模型(JMM)?它的作用是什么?答案:Java内存模型(JMM)是一个抽象的概念,它定义了Java程序中各种变量(线程共享变量)的访问规则,以及在并发环境下如何保证这些变量的可见性、原子性和有序性。JMM的作用是确保在并发编程中,不同线程之间对共享变量的操......
  • Java面试进阶指南:高级问题与解答精粹(二)
    Java面试问题及答案1.什么是Java内存模型(JMM)?请简述它的作用。答案:Java内存模型(JMM)是一个抽象的概念,它定义了Java程序中各种变量(线程共享变量)的访问规则,以及在并发环境下如何保证数据的一致性。JMM规定了线程如何与主内存(所有线程共享的内存)交互,以及如何通过工作内存(每个......
  • Java进阶指南:高级面试问题与精辟解答(一)
    Java面试问题及答案1.请解释什么是Java内存模型(JMM)?它在并发编程中扮演什么角色?答案:Java内存模型(JMM)是一个抽象的内存模型,它定义了Java程序中变量的访问规则,以及在并发环境下如何保证内存操作的原子性、可见性和有序性。JMM确保了在多线程环境下,不同线程间对共享变量的......
  • Java进阶指南:高级面试问题与精辟解答(三)
    Java面试问题及答案1.什么是Java中的多态性?答案:多态性是Java中的一个重要特性,它允许一个引用类型可以指向多种实际类型的对象,并根据对象的实际类型调用相应的方法。多态性主要通过方法重载(静态多态)和方法重写(动态多态)来实现。方法重载发生在编译时,而方法重写发生在运行......
  • 说说 Javascript 数字精度丢失的问题,如何解决?
    一、场景复现一个经典的面试题0.1+0.2===0.3//false为什么是false呢?先看下面这个比喻比如一个数1÷3=0.33333333......3会一直无限循环,数学可以表示,但是计算机要存储,方便下次取出来再使用,但0.333333......这个数无限循环,再大的内存它也存不下,所以不能存储一个相......
  • 工具类 java List集合转树形结构TerrList 构建List集合为树形结构
    点下面↓工具类javaList集合转树形结构TerrList构建List集合为树形结构工具类javaList集合转树形结构TerrList构建List集合为树形结构-CSDN博客......
  • 将 Spring data JPA jars 升级到 v3.3.0 后出现 java.lang.NoSuchMethodError 错误
    在我将springdatajpa和commonsjar升级到我们产品的3.3.0版本后,我遇到了这个错误。Causedby:java.lang.NoSuchMethodError:'voidcom.org.application.server.services.workorder.database.dao.UpdateWorkOrder._persistence_checkFetchedForSet(java.lang.String)'......
  • JavaDS-学习数据结构之如果从零开始手搓顺序表,顺带学习自定义异常怎么用!
    前言笔者开始学习数据结构了,虽然笔者已经会用了,不管是C++中的stl亦或是Java中的集合,为了算法比赛多少都突击过,但只知其然而不知其所以然,还是会限制发展的,因此,笔者写下这篇博客.内容是手搓一个顺序表.顺带加一点异常的使用,大伙看个乐子就好了.有错误直接私信喷我就......
  • springboot基于Java的超市进销存系统vue(源码+lw+部署文档+讲解等)
    前言......
  • 19.基于SSM的点餐系统|基于SSM框架+JSP+ Mysql+Java+B/S框架设计与实现(可运行源码+数
    内容概要:全套项目源码+详尽文档,一站式解决您的学习与项目需求。适用人群:计算机、通信、人工智能、自动化等专业的学生、老师及从业者。使用场景及目标:无论是毕设、期末大作业还是课程设计,一键下载,轻松部署,助您轻松完成项目。项目代码经过调试测试,确保直接运行,节省您的时......