Spire.Office for Java 10.1.0 is released

Spire.Office for Java 10.1.0 is released

2025-01-23 02:53:53

We are excited to announce the release of Spire.Office for Java 10.1.0. In this version, Spire.Doc for Java supports tracking additions, deletions and changes to document elements and text content; Spire.Barcode for Java supports obtaining barcode information; Spire.OCR for Java supports macOS 10.15 and later versions. Besides, a lot of known issues are fixed successfully in this version. More details are listed below.

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

Here is a list of changes made in this release

Spire.Doc for Java

Category ID Description
New feature SPIREDOC-10870 Synchronizes methods to track the addition, deletion, and changes of document elements and text content.
public void startTrackRevisions(String author);
public void startTrackRevisions(String author, Date date);
public void stopTrackRevisions();
New feature SPIREDOC-11038 Supports the function of obtaining and enabling 'Do not add space between paragraphs of the same style'.
paragraph.getFormat().getNoSpaceBetweenParagraphsOfSameStyle();
paragraph.getFormat().setNoSpaceBetweenParagraphsOfSameStyle(true);
New feature SPIREDOC-10951 Supports changing bookmark name.
bookmark.setName(String bookmarkName);
Bug SPIREDOC-10725 Fixes the issue that the results were incorrect when adding TOC and updating SEQ domains.
Bug SPIREDOC-10848 Fixes the issue that the images were blurred when converting HTML to images.
Bug SPIREDOC-10887 Fixes the issue of incorrect color and extra spaces in the list text when converting Word to HTML.
Bug SPIREDOC-10891 Fixes the issue that the content was lost when converting Word to PDF.
Bug SPIREDOC-10903 Fixes the issue that extra references content appeared when updating TOC.
Bug SPIREDOC-10905 Fixes the issue that the formulas were incorrect when converting Word to HTML on Linux system.
Bug SPIREDOC-10925 Fixes the issue that the TOC updated incorrectly.
Bug SPIREDOC-10931 Fixes the issue that the table content overflowed the border when converting Word to HTML.
Bug SPIREDOC-10932 Fixes the issue that the numbering was incorrect when converting Word to HTML.
Bug SPIREDOC-10978 Fixes the issue that the fonts were incorrect when converting HTML to PDF.
Bug SPIREDOC-11000 Fixes the issue that the line height was incorrect when converting HTML to Word.
Bug SPIREDOC-11006 Fixes the issue that the program threw the exception 'UnsupportedOperaException' when loading Markdown file stream.
Bug SPIREDOC-11007 Fixes the issue that the program threw the exception "Collection was modified; enumeration operation may not execute" when converting Word to PDF.
Bug SPIREDOC-11040 Fixes the issue that the program threw the exception "Not supported delivering content between bookmarks in different paragraphs" when replacing bookmark content.

Spire.PDF for Java

Category ID Description
Bug SPIREPDF-7316 Optimizes the speed of converting HTML documents to PDF documents using the ChromeHtmlConverter solution.
Bug SPIREPDF-7018 Fixes the issue that the program threw a "PDF structure is not valid" error when merging PDF documents.
Bug SPIREPDF-7155 Fixes the issue that the tables were squeezed and distorted when creating booklets using document.createBooklet(inputPath, width, height, true) method.
Bug SPIREPDF-7233 Fixes the issue that the bold text style was intensified when printing PDF documents.
Bug SPIREPDF-7245 Fixes the issue that using relative paths would cause exceptions when converting HTML documents to PDF documents using the ChromeHtmlConverter solution.
Bug SPIREPDF-7287 Fixes the issue that the cache files were leftover when converting HTML documents to PDF documents using the ChromeHtmlConverter solution.
Bug SPIREPDF-7299 Fixes the issue that the Chinese characters were garbled when converting SVG documents to PDF documents.
Bug SPIREPDF-7315 Fixes the issue that the fonts were incorrect when printing PDF documents.
Bug SPIREPDF-7317 Fixes the issue that the character order was incorrect when extracting vertical text from tables.

Spire.XLS for Java

Category ID Description
Bug SPIREXLS-5559 Fixes the issue that the program threw an exception when calculating values using the workbook.calculateAllValue().
Bug SPIREXLS-5617 Fixes the issue that the results of formulas were incorrect when converting worksheets to images.
Bug SPIREXLS-5636 Fixes the issue that inconsistency occurred when converting Excel documents to PDF documents.
Bug SPIREXLS-5645 Fixes the issue that the program threw a java.lang.NumberFormatException exception when loading HTML documents.
Bug SPIREXLS-5658 Fixes the issue that "Invalid ValidationType string val" occurred when loading XLSX documents.
Bug SPIREXLS-5663 Fixes the issue that the title of the created chart overlapped with the chart's data.
Bug SPIREXLS-5664 Fixes the issue that failed to add rich text in merged cells.
Bug SPIREXLS-5676 Fixes the issue that the layout of contents was incorrect when converting worksheets to images.

Spire.Presentation for Java

Category ID Description
Bug SPIREPPT-2665 Fixes the issue that merging PowerPoint documents resulted in document opening reporting a fix.
Bug SPIREPPT-2668 Fixes the issue that there was incorrect content when converting PPTX to images.
Bug SPIREPPT-2670 Fixes the issue that text wrapping errors occurred when converting PPTX to images.
Bug SPIREPPT-2672 Fixes the issue that text layout was incorrect when converting PPTX to images.
Bug SPIREPPT-2673 Fixes the issue that the image background was incorrect when converting PPTX to images.
Bug SPIREPPT-2680 Fixes the issue that the program threw a 'java. lang. ClassCastException' when loading PowerPoint documents.
Bug SPIREPPT-2693 Fixes the issue that content layout was incorrect when opening in WPS software after merging PowerPoint documents.
Bug SPIREPPT-2694 Fixes the issue that adding annotations to specific text failed.
Bug SPIREPPT-2695 Fixes the issue that the program threw a 'java. lang. NullPointer Exception' when converting PPTX to images.

Spire.Barcode for Java

Category ID Description
New feature SPIREBARCODE-258 The BarcodeScanner class supports obtaining barcode information, including barcode type, data value and vertex position information.
BarcodeInfo[] infos = BarcodeScanner.scanInfo("barcode.png");
Point[] loaction = infos[0].getVertexes();
BarCodeReadType barCodeReadType = infos[0].getReadType();
String dataString =  infos[0].getDataString();
New feature - The BarcodeScanner class supports scanning Aztec type.
String[] s = BarcodeScanner.scan("AZTEC.png",BarCodeType.Aztec);
New feature - The BarcodeScanner class supports scanning with more overload settings.
Public static String[] scan(BufferedImage bitmap, java.awt.Rectangle rect, BarCodeType barcodeType, boolean IncludeCheckSum)
Public static String[] scan(String fileName, BarCodeType barcodeType, boolean IncludeCheckSum)
Public static String scanOne(String fileName, BarCodeType barcodeType, boolean IncludeCheckSum)
Public static String scanOne(InputStream stream, BarCodeType barcodeType, boolean IncludeCheckSum)
New feature - Adds external use enumerations.
com.spire.barcode.publics.drawing.FontStyle
com.spire.barcode.publics.drawing.GraphicsUnit
com.spire.barcode.publics.drawing.StringAlignment
New feature - Adjustments to the IBarCodeSettings interface.

Recycled:

public java.awt.Font getTopTextFont()
public java.awt.Font getBottomTextFont()
public java.awt.Font getTextFont()

Modified:

public void setBottomTextFont(java.awt.Font value)->public void setBottomTextFont(String familyName, float fontSize)
public void setTopTextFont(java.awt.Font value)->public void setTopTextFont(String familyName, float fontSize)
public boolean showBottomText->public boolean isShowBottomText()
public void setShowBottomText(boolean value) -> public void isShowBottomText(boolean value)
public com.spire.barcode.GraphicsUnit getUnit() -> public com.spire.barcode.publics.drawing.GraphicsUnit getUnit()
public void setUnit(com.spire.barcode.GraphicsUnit value) -> public void setUnit(com.spire.barcode.publics.drawing.GraphicsUnit value)
public void setTextFont(java.awt.Font value) -> public void setTextFont(String familyName, float fontSize)
public float getLeftMargin() ->The default value adjusted from 5 to 4. 

Newly Added:

public float getTopTextMargin()  
public void setTopTextMargin(float value)
public int getAztecErrorCorrection()
public void setAztecErrorCorrection(int value)
public int getAztecLayers()
public void setAztecLayers(int value)
public DataMatrixSymbolShape getDataMatrixSymbolShape()
public void setDataMatrixSymbolShape(DataMatrixSymbolShape value)
public ITF14BorderType getITF14BearerBars() 
public void setITF14BearerBars(ITF14BorderType value)
public void setTextFont(String familyName, float fontSize, com.spire.barcode.publics.drawing.FontStyle style)
public boolean isShowStartCharAndStopChar()
public void isShowStartCharAndStopChar(boolean value)
New feature - Adjustments to the BarcodeSettings class interfaces.

Recycled:

public java.awt.Font getTextFont()
public java.awt.Font getTopTextFont() 
public java.awt.Font getBottomTextFont()

Modified:

public void setTextFont(java.awt.Font value) -> public void setTextFont(String familyName, float sizePoints)
public com.spire.barcode.GraphicsUnit getUnit() -> public com.spire.barcode.publics.drawing.GraphicsUnit getUnit()
public void setUnit(com.spire.barcode.GraphicsUnit value) -> public void setUnit(com.spire.barcode.publics.drawing.GraphicsUnit value)
public com.spire.barcode.StringAlignment getTextAlignment() -> public com.spire.barcode.publics.drawing.StringAlignment getTextAlignment()
public void setTextAlignment(com.spire.barcode.StringAlignment value) -> public void setTextAlignment(com.spire.barcode.publics.drawing.StringAlignment value)
public com.spire.barcode.StringAlignment getTopTextAligment() -> public com.spire.barcode.publics.drawing.StringAlignment getTopTextAligment()
public void setTopTextAligment(com.spire.barcode.StringAlignment value) -> public void setTopTextAligment(com.spire.barcode.publics.drawing.StringAlignment value)
public void setBottomTextFont(java.awt.Font value) -> public void setBottomTextFont(String familyName, float fontSize)
public void setTopTextFont(java.awt.Font value) -> public void setTopTextFont(String familyName, float fontSize)
public boolean showBottomText->public boolean isShowBottomText()
public void setShowBottomText(boolean value) -> public void isShowBottomText(boolean value)
public com.spire.barcode.StringAlignment getBottomTextAlignment() -> public com.spire.barcode.publics.drawing.StringAlignment getBottomTextAlignment()
public void setBottomTextAlignment(com.spire.barcode.StringAlignment value) -> public void setBottomTextAlignment(com.spire.barcode.publics.drawing.StringAlignment value)
public float getLeftMargin() ->The default value adjusted from 5 to 4. 

Newly Added:

public float getTopTextMargin()
public void setTopTextMargin(float value)
public void setTextFont(String familyName, float sizePoints, com.spire.barcode.publics.drawing.FontStyle style)
public void setTopTextFont(String familyName, float fontSize, com.spire.barcode.publics.drawing.FontStyle style)
public void setITF14BearerBars(ITF14BorderType value)
public boolean isShowStartCharAndStopChar()
public void isShowStartCharAndStopChar(boolean value)
public int getAztecLayers()
public void setAztecLayers(int value)
public int getAztecErrorCorrection()
public void setAztecErrorCorrection(int value)
public DataMatrixSymbolShape getDataMatrixSymbolShape()
public void setDataMatrixSymbolShape(DataMatrixSymbolShape value)
public void setBottomTextFont(String familyName, float fontSize, com.spire.barcode.publics.drawing.FontStyle style)

Spire.OCR for Java

Category ID Description
New feature SPIREOCR-81 Supports macOS 10.15 and later versions.
New feature SPIREOCR-78 Improves the efficiency of memory reclamation and recognition speed.
Bug SPIREOCR-58 Fixes the issue that the coordinates of extracted text were incorrect.
Bug SPIREOCR-73 Fixes the issue that text recognizing of rotated images was inaccurate.
Bug SPIREOCR-83 Fixes the issue that picture objects were not released.