We are excited to announce the release of Spire.Office for Java 7.12.4. In this version, Spire.PDF for Java supports creating tagged PDF files; Spire.Presentation for Java supports cloning tables to a new slide; Spire.Doc for Java enhances the conversion from Word to PDF; Spire.XLS for Java enhances the conversion from Excel to PDF and images as well as XLSM to PDF. Moreover, a lot of known issues are fixed in this release. More details are listed below.
Click the link to download Spire.Office for Java 7.12.4:
Here is a list of changes made in this release
Spire.PDF for Java
Category | ID | Description |
New feature | - | Supports creating tagged PDF files.
//Create a pdf document PdfDocument doc = new PdfDocument(); //Add page doc.getPages().add(); //Set tab order doc.getPages().get(0).setTabOrder(TabOrder.Structure); //Create PdfTaggedContent PdfTaggedContent taggedContent = new PdfTaggedContent(doc); taggedContent.setLanguage("en-US"); taggedContent.setTitle("test"); //Set font PdfTrueTypeFont font = new PdfTrueTypeFont(new Font("Times New Roman",Font.PLAIN,12), true); PdfSolidBrush brush = new PdfSolidBrush(new PdfRGBColor(Color.black)); //Append elements PdfStructureElement article = taggedContent.getStructureTreeRoot().appendChildElement(PdfStandardStructTypes.Document); PdfStructureElement paragraph1 = article.appendChildElement(PdfStandardStructTypes.Paragraph); PdfStructureElement span1 = paragraph1.appendChildElement(PdfStandardStructTypes.Span); span1.beginMarkedContent(doc.getPages().get(0)); PdfStringFormat format = new PdfStringFormat(PdfTextAlignment.Justify); doc.getPages().get(0).getCanvas().drawString("Spire.PDF for .NET is a professional PDF API applied to creating, writing, editing, handling and reading PDF files.", font, brush, new Rectangle(40, 0, 480, 80), format); span1.endMarkedContent(doc.getPages().get(0)); PdfStructureElement paragraph2 = article.appendChildElement(PdfStandardStructTypes.Paragraph); paragraph2.beginMarkedContent(doc.getPages().get(0)); doc.getPages().get(0).getCanvas().drawString("Spire.PDF for .NET can be applied to easily convert Text, Image, SVG, HTML to PDF and convert PDF to Excel with C#/VB.NET in high quality.", font, brush, new Rectangle(40, 80, 480, 60), format); paragraph2.endMarkedContent(doc.getPages().get(0)); PdfStructureElement figure1 = article.appendChildElement(PdfStandardStructTypes.Figure); //Set Alternate text figure1.setAlt("replacement text1"); figure1.beginMarkedContent(doc.getPages().get(0), null); PdfImage image = PdfImage.fromFile("E-logo.png"); Dimension2D dimension2D = new Dimension(); dimension2D.setSize( 100,100); doc.getPages().get(0).getCanvas().drawImage(image, new Point2D.Float(40, 200),dimension2D); figure1.endMarkedContent(doc.getPages().get(0)); PdfStructureElement figure2 = article.appendChildElement(PdfStandardStructTypes.Figure); //Set Alternate text figure2.setAlt( "replacement text2"); figure2.beginMarkedContent(doc.getPages().get(0), null); doc.getPages().get(0).getCanvas().drawRectangle(PdfPens.getBlack(), new Rectangle(300, 200, 100, 100)); figure2.endMarkedContent(doc.getPages().get(0)); //Save to file String result = "CreateTaggedFile_result.pdf"; doc.saveToFile(result); doc.close(); |
Bug | SPIREPDF-4806 | Optimizes the time consumption of extracting images. |
Bug | SPIREPDF-4856 | Optimizes the memory consumption of compressing document images. |
Bug | SPIREPDF-4860 SPIREPDF-5583 |
Fixes the issue that the application hanged for a long time when loading a PDF file. |
Bug | SPIREPDF-4955 | Optimizes the time consumption of compressing PDF file. |
Bug | SPIREPDF-5496 | Fixes the issue that the application threw "No 'TimesNewRoman' font found" when defining the CustomFontsFolders to convert PDF to Excel. |
Bug | SPIREPDF-5622 | Fixes the issue that the borders had different thickness when drawing table with PdfGrid. |
Bug | SPIREPDF-5641 | Fixes the issue that the grid cell content displayed incorrectly when drawing on different position. |
Bug | SPIREPDF-5646 | Fixes the issue that the application threw "Unexpected token Unknown before 105" when merging PDF files. |
Spire.Presentation for Java
Category | ID | Description |
New feature | SPIREPPT-2110 | Supports cloning table to new slide.
Presentation ppt = new Presentation(); ppt.loadFromFile(inputPPT); ITable table = (ITable)ppt.getSlides().get(0).getShapes().get(0); Presentation ppt2 = new Presentation(); ISlide slide = ppt2.getSlides().get(0); slide.getShapes().appendTable(0,0, table); ppt2.saveToFile(outputFile, FileFormat.PPTX_2013); |
Bug | SPIREPPT-2112 | Fixes the issue that the filling color of the text was obtained incorrectly. |
Bug | SPIREPPT-2113 | Fixes the issue that the document size didn't reduce after deleting videos from PowerPoint document. |
Bug | SPIREPPT-2122 | Fixes the issue that the modified content was not updated when converting PowerPoint to SVG. |
Bug | SPIREPPT-2127 | Fixes the issue that the added videos with url data were not played. |
Bug | SPIREPPT-2128 | Fixes the issue that the content was rotated when converting PowerPoint to images. |
Bug | SPIREPPT-2129 | Fixes the issue that the background style was incorrect when converting PowerPoint to SVG. |
Bug | SPIREPPT-2130 | Fixes the issue that the charts lost when converting PowerPoint to images. |
Spire.XLS for Java
Category | ID | Description |
Bug | SPIREXLS-4147 | Fixes the issue that the content was incorrect after converting Excel to PDF and images. |
Bug | SPIREXLS-4260 | Fixes the issue that the content format was incorrect after converting Excel to PDF. |
Bug | SPIREXLS-4236 | Fixes the issue that the date format of the created pivot table was incorrect. |
Bug | SPIREXLS-4298 | Fixes the issue that there was extra blank page after converting XLSM to PDF. |
Bug | SPIREXLS-4289 | Fixes the issue that the Worksheet.MaxDisplayRange area could not include pictures. |
Bug | SPIREXLS-4319 | Fixes the issue that the program threw an error "Value is too large or too small" when converting Excel to PDF. |
Bug | SPIREXLS-4327 | Fixes the issue that the date was incorrect after converting Excel to PDF. |
Bug | SPIREXLS-4329 | Fixes the issue that the content was incomplete after converting Excel to images. |
Bug | SPIREXLS-4331 SPIREXLS-4335 |
Fixes the issue that the number format was incorrect after converting Excel to PDF in en_IN system. |
Bug | SPIREXLS-4339 | Fixes the issue that the transparency of the added image watermark lost. |
Bug | SPIREXLS-4348 | Fixes the issue that the program threw an error "Invalid row index" when converting Excel to PDF. |
Spire.Doc for Java
Category | ID | Description |
Bug | SPIREDOC-8790 | Fixes the issue that the table format was incorrect when converting Word to PDF. |
Bug | SPIREDOC-8791 | Fixes the issue that the table lost when converting Word to PDF. |