News & Releases
|
|

Spire.Office for Java 3.1.0 is released
We're pleased to announce the release of Spire.Office for Java 3.1.0. This new version includes Spire.XLS for Java which supports to create, manage, manipulate, convert and print Excel worksheets without installing Microsoft Excel and adds these new features, such as Spire.PDF supports setting the width pixel and height pixel when converting PDF to SVG and make the PdfFileLinkAnnotationWidget class and getValue property public, Spire.Presentation supports setting the content to center when saving to HTML. In addition, some issues that occurred when converting PDF to Word/HTML, PPT to PDF/image, Word to PDF/HTML, setting background image for PPT and encrypting Word document are fixed successfully. See the content below for more details.
New Features:
- Includes Spire.XLS for Java.
Spire.PDF for Java
New Features:
- The PdfFileLinkAnnotationWidget class has been made public.
- Supports setting the width pixel and height pixel when converting PDF to SVG.
- The getValue property used to get the value of radio button has been made public.
pdf.getConvertOptions().setPdfToSvgOptions(float widthPixel, float heightPixel);
PdfRadioButtonWidgetItem item=items.get(j); item.getValue();
Bug Fixes:
- Fixes the issue that the application hung when converting PDF to Word.
- Fixes the issue that the application threw exception when converting PDF to HTML.
- Fixes the issue that the watermark cannot be drawn on PDF successfully on MAC.
Spire.Presentation for Java
New Features:
- Supports setting the content to center when saving to HTML.
- Adds getTargetSlide () method to get the target slide when the hyperlink type is GO_SLIDE.
Presentation ppt1 = new Presentation(); ppt1.loadFromFile(inputFile); ppt1.getSaveToHtmlOption().setCenter(true); ppt1.saveToFile(outputFile, FileFormat.HTML);
Presentation ppt = new Presentation();
ppt.loadFromFile("test.pptx");
IAutoShape shape = (IAutoShape) ppt.getSlides().get(0).getShapes().get(0);
HyperlinkActionType type = shape.getClick().getActionType();
ISlide slide = shape.getClick().getTargetSlide();
int slideNumber =slide.getSlideNumber();
Bug Fixes:
- Fixes the issue that the application threw the error "cannot found font installed on the system" when saving a .pptx file on MAC.
- Fixes the issue that the application threw the AppException when loading a .pptx file.
- Fixes the issue that the application threw the error "Cannot find table '0S/2' in the font file" when adding HTML in a shape.
- Fixes the issue that the application threw an exception when setting background image for PPT file on MAC.
- Fixes the issue that there were extra black lines in result after converting PPT to PDF.
- Fixes the issue that the application threw an exception when saving shape to image.
- Fixes the issue that the process failed when saving GroupShape to image.
- Fixes the issue that the application threw “OutOfMemoryError” when saving slide to image.
- Fixes the issue that the application threw an exception when converting PPT to image.
Spire.Doc for Java
Bug Fixes:
- Fixes the issue that the first cell data only is retained when merging cells vertically or horizontally
- Fixes the issue that the formulas lost when converting a .docx document to HTML
- Fixes the issue that saving the document failed after modifying the format of document content
- Fixes the issue that removing section breaks failed
- Fixes the issue that it threw an error "Operation is not valid due to the current state of the object." when loading .docx documents
- Fixes the issue that multi-threaded concurrent conversion of Word to PDF failed
- Fixes the issue that it threw an error "pItem have not found in paragraph items" when converting a. docx document to PDF
- Fixes the issue that the message "Password error" was displayed when entering a password after protecting a document
- Fixes the issue that there were extra blank lines when converting a .docx document to PDF
- Fixes the issue that it threw IllegalStateException when converting a .doc document to PDF
- Fixes the issue that it threw an error "No have this value 1" when merging documents.
- Fixes the issue that converting Word to PDF takes a long time.
- Fixes the issue that it threw an exception when loading a .doc document.
- Fixes the issue that the page number is incorrect after converting Word to PDF.
- Fixes the issue that the content is incorrect when getting ListText of paragraphs.
- Fixes the issue that it threw an exception when loading Word document.
- Fixes the issue that saving a document threw an exception after removing its section break.
- Fixes the issue that the header images were duplicated after converting Word to PDF.
- Fixes the issue that the image position is incorrect after converting Word to PDF.
- Fixes the issue that it threw an exception when updating TOC.
- Fixes the issue that the right margin of the page was increased after converting Word to PDF.
- Fixes the issue that getting the text required saving the document firstly after doing mail merge.
- Fixes the issue that the text was overlapped after adding header and footer.
- Fixes the issue that it threw NullReferenceException when converting Word to PDF.