Spire.Office for Java 7.5.4 is released

2022-05-30 06:05:19

We are happy to announce the release of Spire.Office for Java 7.5.4. In this version, Spire.Doc for Java supports setting "Snap to grid when document grid is defined" for Word file paragraph; Spire.XLS for Java enhances the conversion from Excel to PDF; Spire.Presentation for Java supports setting the rounded corners for the Chart border, setting the color of SeriesLines, and setting the effect of chart animation by series; Spire.PDF for Java enhances the conversion from PDF to image, Word, Excel, PDF/A and PDFA1B. Additionally, many known bugs have been fixed successfully. More details are listed below.

Click the link to download Spire.Office for Java 7.5.4:

Here is a list of changes made in this release

Spire.Doc for Java

Category ID Description
New feature SPIREDOC-7777 Supports setting "Snap to grid when document grid is defined" for word file paragraph.
Document document = new Document(inputFile);
Paragraph pa = document.getSections().get(0).getParagraphs().get(0);
pa.getFormat().setSnapToGrid(true);
Bug SPIREDOC-6873 Fixes the issue that it is failed to open the result file after saving the .docx file to .doc.
Bug SPIREDOC-7126
SPIREDOC-7630
SPIREDOC-7759
SPIREDOC-7797
Fixes the issue that the content format was incorrect after converting word file to PDF.
Bug SPIREDOC-7222 Fixes the issue that the table position was incorrect after converting word file to PDF.
Bug SPIREDOC-7261 Fixes the issue that the <pre> tag didn't take effect when converting Html to word file.
Bug SPIREDOC-7373 Fixes the issue that the table borders were changed after saving as another .docx file.
Bug SPIREDOC-7571 Fixes the issue that it is failed to convert SmartArt to image.
Bug SPIREDOC-7589
SPIREDOC-7618
SPIREDOC-7746
SPIREDOC-7770
Fixes the issue that the paginations were incorrect after converting word file to PDF.
Bug SPIREDOC-7631 Fixes the issue that the content was lost after converting SmartArt to image.
Bug SPIREDOC-7657 Fixes the issue that the application threw "AssertionError" when converting word file to PDF.
Bug SPIREDOC-7703 Fixes the issue that the image color was incorrect after converting word file to PDF.
Bug SPIREDOC-7710 Fixes the issue that the table formart was incorrect after converting Html to word file.
Bug SPIREDOC-7729 Fixes the issue that the application threw "NullPointerException" when saving the word file Shape to image.
Bug SPIREDOC-7740 Fixes the issue that the page number format was incorrect after converting word file to PDF.
Bug SPIREDOC-7745 Fixes the issue that the application threw "NullPointerException" when converting word file to PDF.
Bug SPIREDOC-7755 Fixes the issue that the application threw "X509CertImpl" error when using on IBM websphere.
Bug SPIREDOC-7775 Fixes the issue that the page number obtained was incorrect.
Bug SPIREDOC-7794 Fixes the issue that the application threw "Input string was not in the correct format" when loading a word file.
Bug SPIREDOC-7832 Fixes the issue that the application threw "IllegalStateException: Cannot convert 'horz'" when converting word file to PDF.

Spire.XLS for Java

Category ID Description
Bug SPIREXLS-3792 Fixes the issue that the content format was incorrect after adding images in Excel and converting it to PDF.
Bug SPIREXLS-3778 Fixes the issue that the content of chart lost after copying worksheets multiple times.
Bug SPIREXLS-3811 Fixes the issue that the application threw the "ArrayIndexOutOfBoundException" when converting Xls to Xlsx.

Spire.Presentation for Java

Category ID Description
New feature SPIREPPT-1922 Supports setting the color of SeriesLines.
Presentation ppt = new Presentation();
ppt.loadFromFile(inputFile);
IChart chart = (IChart) ppt.getSlides().get(1).getShapes().get(3);
TextLineFormat seriesLine = chart.getSeriesLine();
seriesLine.setFillType(FillFormatType.SOLID);
seriesLine.getFillFormat().getSolidFillColor().setColor(Color.RED);
ppt.saveToFile(outputFile, FileFormat.AUTO);
ppt.dispose();
New feature SPIREPPT-1938 Supports settings the effect of chart animation by series.
Presentation ppt = new Presentation();
IChart chart = ppt.getSlides().get(0).getShapes().appendChart(ChartType.COLUMN_CLUSTERED,new Rectangle(50,50,400,400));
AnimationEffect effect = ppt.getSlides().get(0).getTimeline().getMainSequence().addEffect(chart, AnimationEffectType.FLY);
GraphicAnimation graphicAnimation = effect.getGraphicAnimation();
if (graphicAnimation != null)
{
graphicAnimation.setBuildType(GraphicBuildType.BUILD_AS_SERIES);
}
New feature SPIREPPT-1921 Support setting the rounded corners for the Chart border.
Presentation presentation = new Presentation();
IChart chart = presentation.getSlides().get(0).getShapes().appendChart(ChartType.COLUMN_CLUSTERED, new Rectangle(100, 100, 500, 400));
chart.setBorderRoundedCorners(true) 
Bug SPIREPPT-1896 Fixes the issue that some content were lost after converting PowerPoint to image.
Bug SPIREPPT-1903 Optimizes the issue that the size of the split PowerPoint file is too big
Bug SPIREPPT-1906 Fixes the issue that the text direction was incorrect after converting PowerPoint to image or PDF.
Bug SPIREPPT-1920 Fixes the issue that the application threw "'No have this symbologyType" when converting PowerPoint to PDF.
Bug SPIREPPT-1923 Fixes the issue that the shape of Chart border corners was incorrect after converting PowerPoint to PDF.
Bug SPIREPPT-1720 Fixed the issue causing incorrect content format after converting PowerPoint documents to images.
Bug SPIREPPT-1914 Fixed the issue that the application throws "NullPointerException" when converting PowerPoint documents to PDF.
Bug SPIREPPT-1924 Fixed the issue that some fonts failed to be embedded when converting PowerPoint documents to PDF.
Bug SPIREPPT-1944 Fixed the issue that some content styles were incorrect after converting PowerPoint documents to PDF.

Spire.PDF for Java

Category ID Description
Bug SPIREPDF-4998 Fixes the issue that the transparent background became white after converting PDF to image.
Bug SPIREPDF-5002 Fixes the issue that the application threw "Item has already been added. " when converting PDF to Word in multi-thread.
Bug SPIREPDF-5007 Fixes the issue that caused poor effect after converting Tiff to PDF.
Bug SPIREPDF-5023 Fixes the issue that the content format was incorrect after converting Svg to PDF.
Bug SPIREPDF-5044
SPIREPDF-5045
Fixes the issue that the application threw "NullPointerException" when converting PDF to Word.
Bug SPIREPDF-5049 Fixes the issue that the application threw "NumberFormatException" when converting PDF to Word.
Bug SPIREPDF-5055 Fixes the issue that the application threw "class com.spire.office.packages.sprnfma" when converting PDF to Word using flow method.
Bug SPIREPDF-5093 Fixes the issue that the application threw "Requested a name string that is not present in the font" when converting PDF to HTML.
Bug SPIREPDF-5110 Fixes the issue that the text format was incorrect after converting Ofd to PDF.
Bug SPIREPDF-4216 Fixes the issue that some texts repeated after converting PDF to Excel.
Bug SPIREPDF-4895 Fixes the issue that the text became an image after converting PDF to Excel.
Bug SPIREPDF-4994 Fixes the issue that some data were incorrect after converting PDF to Excel.
Bug SPIREPDF-5034 Fixes the issue that caused messy characters after converting PDF to Word.
Bug SPIREPDF-5052 Fixes the issue that the application threw exception when converting PDF to Word.
Bug SPIREPDF-5056 Fixes the issue that some contents were incorrect after converting PDF to PDF/A.
Bug SPIREPDF-5066 Fixes the issue that the row height narrowed after merging cells.
Bug SPIREPDF-5088 Fixes the issue that some contents were incorrect after converting PDF to Word.
Bug SPIREPDF-5111 Fixes the issue that the application threw the exception "Document element did not appear" when converting OFD to PDF in parallel.
Bug SPIREPDF-5117 Fixes the issue that caused extra space when drawing Arabic text and setting right alignment.
Bug SPIREPDF-5131
SPIREPDF-5144
Fixes the issue that the application threw the exception "(x+width) is outside of Raster" when converting PDF to Word.
Bug SPIREPDF-5133 Fixes the issue that the style of center alignment was lost after converting PDF to HTML.
Bug SPIREPDF-5143 Fixes the issue that the application threw the exception "Specified argument was out of the range of valid values" when drawing PDF grid.
Bug SPIREPDF-5149 Fixes the issue that caused incorrect table format after adding long text in cell.
Bug SPIREPDF-5153 Fixes the issue that the text exceeded the border after converting PDF to PDFA1B.
Bug SPIREPDF-5161 Fixes the issue that the application threw "NullPointerException" when embedding grid.
Bug SPIREPDF-5197 Fixes the issue that the application threw "No have this Height" when converting PDF to Word.