Spire.Office for Java 3.8.2

Spire.Office for Java 3.8.2 is released

We're pleased to announce the release of Spire.Office for Java 3.8.2. This version includes some fantastic new features, for example, Spire.Doc supports getting types of watermarks, Spire.PDF supports replacing horizontal line with empty line when extracting text from PDF, Spire.XLS supports converting Excel to Tiff, and Spire.Presentation supports getting the section of Powerpoint. Besides, some issues that occurred when loading, manipulating and converting Word, Excel, PDF and Presentation files are successfully fixed. See the lists below for more details.

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

Here is a list of changes made in this release

Spire.Doc for Java

Category ID Description
New Feature SPIREDOC-4776 Supports setting "Hyperlink base" document property.
doc.getBuiltinDocumentProperties().setHyperLinkBase(data);
New Feature SPIREDOC-4847 Supports getting types of watermarks.
WatermarkBase waterbase = doc.getDocument().getWatermark();
String waterType = waterbase.getType().name();
int value =waterbase.getType().getValue();
Bug SPIREDOC-4056 Fixes the issue that the application threw "java.lang.StringIndexOutOfBoundsException" when loading document.
Bug SPIREDOC-4098 Fixes the issue that the application threw "ClassCaseException" when saving document after removing section break.
Bug SPIREDOC-4428 Fixes the issue that the application threw "Attempted to read past the end of the stream" when loading document.
Bug SPIREDOC-4756 Fixes the issue that there were extra boxes when converting HTML to PDF.
Bug SPIREDOC-4801 Fixes the issue that the application threw "NullPointerException" when loading document.
Bug SPIREDOC-4804 Fixes the issue that the application threw "Property value is of unsupported type" when converting .xml to .docx.
Bug SPIREDOC-4813 Fixes the issue that the page number and content format were incorrect when converting Word to PDF.
Bug SPIREDOC-4575 Fixes the issue that the shading of table was incorrect when converting Word to PDF.

Spire.PDF for Java

Category ID Description
New Feature SPIREPDF-3422 Supports replacing horizontal line with empty line when extracting text from PDF.
Optimization SPIREPDF-2168 Optimizes the time for the conversion from PDF to HTML.
Optimization SPIREPDF-3321 Optimizes the output file size for the conversion from PDF to HTML.
Bug SPIREPDF-3436 Fixes the issue that the application threw "NullPointerException" when finding text.
Bug SPIREPDF-3439 Fixes the issue that the application threw the error "Signature 'FPZYZ' failed to verified" when verifying the signature.
Bug SPIREPDF-3442 Fixes the issue that setting Xmp Metadata for PDF documents did not work.
Bug SPIREPDF-3446 Fixes the issue that not all the signatures were valid when digitally signing a PDF multiple times.
Bug SPIREPDF-3467 Fixes the issue that caused the text color to become darker after converting PDF to image.
Bug SPIREPDF-3469 Fixes the issue that the application threw the error "Font parsing Exception" when creating the "PdfTrueTypeFont" object.

Spire.XLS for Java

Category ID Description
New Feature SPIREXLS-2099 Supports converting Excel to Tiff.
worksheet.saveToTiff(name);
worksheet.saveToTiff(name,starRow,startColumn,endRow,endColumn);
Bug SPIREXLS-2285 Fixes the issue that caused incomplete content after converting Excel to PDF.
Bug SPIREXLS-2483 Fixes the issue that caused incorrect content after converting Excel to image.
Bug SPIREXLS-2495 Fixes the issue that caused incorrect data after converting Excel to XML.
Bug SPIREXLS-2499 Fixes the issue that after converting .xls to .xlsx, the generated .xlsx file prompted that there was a problem with some content.
Bug SPIREXLS-2508 Fixes the issue that the application threw "NullPointerException" when converting Excel to image in Mac system.
Bug SPIREXLS-2543 Fixes the issue that caused incorrect font after converting Excel to PDF.

Spire.Presentation for Java

Category ID Description
New Feature SPIREPPT-1225 Supports getting the section of powerpoint.
SectionList list= presentation.getSectionList();
list.get(0).getName();
New Feature SPIREPPT-1227 Adds the getLastVievedSlide method to support getting the hyperlink of the "Last Slide Viewed".
IAutoShape autoShape=presentation.getSlides().get(0).getShapes().appendShape(ShapeType.RECTANGLE,new Rectangle2D.Double(100,100,100,100));
autoShape.setClick(ClickHyperlink.getLastVievedSlide());
Bug SPIREPPT-1033 Fixes the issues that getting the duration of animation returned NaN.
Bug SPIREPPT-1205 Fixes the issues that the content format was incorrect after converting PPT to image.
Bug SPIREPPT-1218 Fixes the issues that failed to set the border of chart.
Bug SPIREPPT-1221
SPIREPPT-1222
Fixes the issues that the content format was incorrect after converting PPT to PDF.
Bug SPIREPPT-1228 Fixes the issues that the application threw the "ClassCastException" when loading a PPT document.