Spire.Office for Java是由E-iceblue开发的一款Java系列的Office文档操作类库,用于操作MS Word、PDF、MS Power Point ®以及条形码,可实现文档创建、编辑、转换、打印等功能,是E-iceblue 所有 Java组件,包括Spire.Doc for Java、Spire.PDF for Java、Spire.Presentation for Java、Spire.Barcode for Java等四个Java类库的集合
控件组成:
1. Spire.Doc for Java (Java Word组件)
用于创建、编辑、转换和打印 MS Word 文档
支持 Word97-2003、Word2007、Word2010 以及 Word2013等Word版本
支持在 Word 97/2003/2007/2010/2013 和 TXT、HTML等格式文件之间进行双向转换,以及将 Word 文件高质量地转换为 PDF、XPS、XML、 SVG 等文件格式
2. Spire.PDF for Java (Java PDF 组件)
用于创建、编辑、 转换和打印 PDF 文档
支持1.2到1.7的所有PDF版本
支持将PDF 文档高质量地转换为 Word、 XPS、PNG、SVG、HTML和 PDF/A 格式,以及将TXT、 XPS、图片文件转换为 PDF 格式
3. Spire.Presentation for Java (Java PowerPoint ®组件)
用于创建、读取、写入、转换、打印 PowerPoint ® 文档
支持 PPT、PPS、PPTX、PPSX 格式的 PowerPoint® 文档
支持将幻灯片转换为 EMF、PNG、TIFF、PDF、XPS、SVG 等格式文件
4. Spire.Barcode for Java (Java 条码控件)
用于创建、识别一维和二维条形码。
支持图片格式包括Bitmap、 JPG、 PNG、 EMF、TIFF、GIF、WMF等
支持的条码类型包括CODE 25、CODABAR、CODE 11、INTERLEAVED 25、CODE 39、CODE 39 EXTENDED、CODE 93、CODE 93 EXTENDED、CODE 128、EAN 8、EAN 13、EAN 128、EAN 14、SCC 14、SSCC 18、ITF 14、ITF 6、UPCA、UPCE、POST NET、SINGAPORE POST 4 STATE、PLANET、MSI、RSS 14、RSS 14 TRUNCATED、RSS LIMITED、RSS EXPANDED、USPS、SWISS POST 、PARCEL、PZN、OPC、DEUTSCHE POST IDENTCODE、DEUTSCHE POST LEITCODE、ROYAL MAIL 4 STATE、DATA MATRIX、QR CODE、PDF 417、PDF 417 MACRO等
独立控件,无需安装Microsoft Office、Adobe Acrobat、以及其他第三方软件
Here is a list of changes made in this release | ||
Spire.PDF for Java | ||
Category | ID | Description |
New feature | SPIREPDF-2628 | Supports converting PDF to PowerPoint. |
PdfDocument pdfDocument =new PdfDocument(); | ||
pdfDocument.loadFromFile("input.pdf"); | ||
pdfDocument.saveToFile("output.pptx", FileFormat.PPTX); | ||
New feature | SPIREPDF-4924 | Supports converting PDF with a password to PDFA. |
PdfStandardsConverter converter=new PdfStandardsConverter("input.pdf", "password"); | ||
converter.toPdfA2A("output.pdf"); | ||
New feature | SPIREPDF-5728 | Supports compressing PDFs with a document open password. |
PdfCompressor compressor = new PdfCompressor("input.pdf","password"); | ||
compressor.getOptions().getImageCompressionOptions().setImageQuality(ImageQuality.Low); | ||
compressor.compressToFile("output.pdf"); | ||
Bug | SPIREPDF-5628 | Fixes the issue that the table was incorrect after converting PDFs to Excel files. |
Bug | SPIREPDF-5708 | Fixes the issue that the hyperlinks were invalid after converting PDF to PDFA2B. |
Bug | SPIREPDF-5722 | Fixes the issue that the text of the obtained attachment annotation was incorrect. |
Bug | SPIREPDF-5725 | Fixes the issue that the program threw an error "Unable to decrypt document without document id" when merging PDFs. |
Spire.XLS for Java | ||
Category | ID | Description |
Bug | SPIREXLS-4423 | Fixes the issue that the referenced data path was incorrect after setting formula multiple times. |
Bug | SPIREXLS-4426 | Fixes the issue that it didn't take effect when setting DataValidation for a cell range area. |
Bug | SPIREXLS-4429 | Fixes the issue that the application threw "Index is less than 0 or more" when loading an Excel document. |
Spire.Doc for Java | ||
Category | ID | Description |
New feature | SPIREDOC-8665 | Supports setting the sdtAppearance property for the content control. |
SPIREDOC-8960 | Document doc = ConvertUnit.GetNewEngineDocument(); | |
doc.loadFromFile(inputFile); | ||
for (Object docObj : doc.getSections().get(0).getBody().getChildObjects()) | ||
{ | ||
if (docObj instanceof StructureDocumentTag) { | ||
DocumentObject Obj = (DocumentObject)docObj; | ||
SDTProperties sdtProperties = ((StructureDocumentTag)Obj).getSDTProperties(); | ||
switch (sdtProperties.getSDTType()) | ||
{ | ||
case Text: | ||
sdtProperties.setAppearance(SdtAppearance.Hidden); | ||
break; | ||
case Rich_Text: | ||
sdtProperties.setAppearance(SdtAppearance.BoundingBox); | ||
break; | ||
case Picture: | ||
sdtProperties.setAppearance(SdtAppearance.Tags); | ||
break; | ||
case Check_Box: | ||
sdtProperties.setAppearance(SdtAppearance.Default); | ||
break; | ||
} | ||
} | ||
} | ||
doc.saveToFile(outputFile, FileFormat.Docx); | ||
doc.dispose(); | ||
Bug | SPIREDOC-4055 | Fixes the issue that the application threw "Unknown Source" error when updating the TableOfContents. |
Bug | SPIREDOC-8658 | Fixes the issue that the application threw "Object reference not set to an instance of an object" when updating the fields. |
Bug | SPIREDOC-8759 | Fixes the issue that the application threw "NullPointerException" when converting to PDF. |
Bug | SPIREDOC-8765 | Fixes the issue that the application threw "RasterFormatException" when converting Word to HTML. |
SPIREDOC-8879 | ||
Bug | SPIREDOC-8854 | Fixes the issue that some content displayed incorrectly after embedding the private fonts. |
Bug | SPIREDOC-8857 | Fixes the issue that the output effect was incorrect after accepting changes. |
SPIREDOC-8893 | ||
Bug | SPIREDOC-8895 | Fixes the issue that it didn't take effect after overwriting an existing protected password. |
Bug | SPIREDOC-8912 | Fixes the issue that there was an error when opening the saved Word file by MS Word. |
Bug | SPIREDOC-8925 | Fixes the issue that the application threw "NullPointerException" when loading a XML file. |
Bug | SPIREDOC-8954 | Fixes the issue that the content format was incorrect after converting Word file to PDF. |
Bug | SPIREDOC-8983 | Fixes the issue that the application threw "IllegalArgumentException" when setting the VerticalAlignment for a picture. |
Spire.Presentation for Java | ||
Category | ID | Description |
Bug | SPIREPPT-2139 | Fixes the issue that the line color was incorrect when converting slide to SVG. |
Bug | SPIREPPT-2142 | Fixes the issue that it failed to get italicized style information of text. |
Bug | SPIREPPT-2144 | Fixes the issue that it failed to get the font of text. |
Bug | SPIREPPT-2146 | Fixes the issue that the image shape was incorrect when converting slide to SVG. |
Bug | SPIREPPT-2147 | Fixes the issue that the text transparency lost when converting HTML to PowerPoint. |
Bug | SPIREPPT-2151 | Fixes the issue that the program threw java.lang.NullPointerException when loading PowerPoint files. |
SPIREPPT-2154 | ||
SPIREPPT-2158 | ||
SPIREPPT-2159 | ||
SPIREPPT-2166 | ||
SPIREPPT-2180 | ||
Bug | SPIREPPT-2155 | Fixes the issue that the program threw Index is less than 0 or more than or equal to the list count when loading PowerPoint files. |
Bug | SPIREPPT-2156 | Fixes the issue that the program hung when converting slide to images. |
Bug | SPIREPPT-2157 | Fixes the issue that the program threw java.lang.NullPointerException when converting slide to images. |
SPIREPPT-2163 | ||
SPIREPPT-2167 | ||
SPIREPPT-2170 | ||
Bug | SPIREPPT-2160 | Fixes the issue that the program threw java.lang.ArrayIndexOutOfBoundsException when converting slide to images. |
Bug | SPIREPPT-2161 | Fixes the issue that the program threw java.lang.NumberFormatException when converting slide to images. |
Bug | SPIREPPT-2162 | Fixes the issue that the program threw java.lang.ClassCastException when converting slide to images. |
Bug | SPIREPPT-2164 | Fixes the issue that the program threw java.lang.UnsupportedOperationException when converting slide to images. |
SPIREPPT-2182 | ||
Bug | SPIREPPT-2165 | Fixes the issue that the program threw com.spire.presentation.AppException: Property not found when converting slide to images. |
Bug | SPIREPPT-2181 | Fixes the issue that the program threw java.lang.Exception: Error reading bytes when loading PowerPoint files. |
Bug | SPIREPPT-2183 | Fixes the issue that the program threw java.lang.ClassCastException when loading PowerPoint files. |
Bug | SPIREPPT-2184 | Fixes the issue that the program threw java.lang.ClassCastException when saving PowerPoint file after deleting videos. |
Bug | SPIREPPT-2184 | Fixes the issue that the program threw java.lang.IllegalArgumentException when saving PowerPoint file after deleting videos. |
Bug | SPIREPPT-2165 | Fixes the issue that the program threw com.spire.presentation.AppException: Property not found when converting slide to images. |