News & Releases
|
|

Spire.Office for Java 4.3.0 is released
We are happy to announce the release of Spire.Office for Java 4.3.0. This version brings some new features, for example, Spire.Presentation for Java optimizes the conversion time from PPT to PDF, supports adding customized path animation as well as supports adding, verifying and removing digital signature. Meanwhile, a lot of bugs have been fixed. More details are listed below.
Click the link to download Spire.Office for Java 4.3.0:
Here is a list of changes made in this release
Spire.Presentation for Java
| Category | ID | Description |
| Optimization | SPIREPPT-1429 SPIREPPT-1459 SPIREPPT-1481 |
Optimizes the conversion time from PPT to PDF. |
| New Feature | SPIREPPT-1504 | Supports adding customized path animation.
Presentation ppt = new Presentation();
//Add shape
IAutoShape shape = ppt.getSlides().get(0).getShapes().appendShape(ShapeType.RECTANGLE,new Rectangle(0, 0, 200, 200));
//Add animation
AnimationEffect effect = ppt.getSlides().get(0).getTimeline().getMainSequence().addEffect(shape, AnimationEffectType.PATH_USER);
CommonBehaviorCollection common = effect.getCommonBehaviorCollection();
AnimationMotion motion = (AnimationMotion)common.get(0);
motion.setOrigin(AnimationMotionOrigin.LAYOUT);
motion.setPathEditMode(AnimationMotionPathEditMode.RELATIVE);
MotionPath moinPath = new MotionPath();
moinPath.addPathPoints(MotionCommandPathType.MOVE_TO,new Point2D.Float[]{new Point2D.Float(0,0)},MotionPathPointsType.CURVE_AUTO,true);
moinPath.addPathPoints(MotionCommandPathType.LINE_TO,new Point2D.Float[]{new Point2D.Float
(0.1f,0.1f)},MotionPathPointsType.CURVE_AUTO,true);
moinPath.addPathPoints(MotionCommandPathType.LINE_TO,new Point2D.Float[]{new Point2D.Float(-
0.1f,0.2f)},MotionPathPointsType.CURVE_AUTO,true);
moinPath.addPathPoints(MotionCommandPathType.END,new Point2D.Float[]{},MotionPathPointsType.CURVE_AUTO,true);
motion.setPath(moinPath);
ppt.saveToFile(outputFile, FileFormat.PPTX_2010);
ppt.dispose();
|
| New Feature | - | Supports adding/verifying/removing digital signature.
Presentation ppt =new Presentation();
ppt.loadFromFile(input);
//Adds digital signature
ppt.addDigitalSignature("C:/gary.pfx", "e-iceblue","Gary", new Date());
ppt.saveToFile(result,FileFormat.PPTX_2013);
//Checks if the document is signed
boolean digitalSigned = ppt2.isDigitallySigned();
if (ppt2.isDigitallySigned() == true)
{
//Removes digital signature
ppt2.removeAllDigitalSignatures();
}
|
| Bug | SPIREPPT-1393 | Fixes the issue that the shadows were lost when converting slides to images. |
| Bug | SPIREPPT-1468 | Fixes the issue that the application threw "NullPointerException" when converting PPTX to images. |
Spire.Doc for Java
| Category | ID | Description |
| Bug | SPIREDOC-3333 | Fixes the issue that the content was truncated after converting Word to PDF. |
| Bug | SPIREDOC-3421 SPIREDOC-4565 SPIREDOC-4582 |
Fixes the issue that the application threw exception when converting Word to HTML. |
| Bug | SPIREDOC-3542 SPIREDOC-4761 SPIREDOC-5246 |
Fixes the issue that the application hung when converting Word to PDF. |
| Bug | SPIREDOC-3563 | Fixes the issue that the application threw the exception "outofmemory" when adding cross reference. |
| Bug | SPIREDOC-3741 | Fixes the issue that the application threw the exception "Specified argument was out of the range of valid values" when loading Word document. |
| Bug | SPIREDOC-3767 | Fixes the issue that the image path was incorrect after converting Word to HTML. |
| Bug | SPIREDOC-3776 SPIREDOC-4138 SPIREDOC-4710 |
Fixes the issue that the application threw the exception "ArrayIndexOutOfBoundsException" when loading Word document. |
| Bug | SPIREDOC-3333 SPIREDOC-5355 SPIREDOC-5443 SPIREDOC-5478 SPIREDOC-5519 |
Fixes the issue that the content was incorrect after converting Word to PDF. |
| Bug | SPIREDOC-3985 SPIREDOC-4609 |
Fixes the issue that the application threw the exception "ArrayIndexOutOfBoundsException" when converting Word to HTML/PDF. |
| Bug | SPIREDOC-4025 | Fixes the issue that the font was changed after converting Word to PDF. |
| Bug | SPIREDOC-4053 SPIREDOC-5297 |
Fixes the issue that the application threw the exception "outofmemory" when loading Word documents. |
| Bug | SPIREDOC-4205 | Fixes the issue that after removing section break, the application threw the exception "outofmemory" when saving Word documents. |
| Bug | SPIREDOC-4413 SPIREDOC-4492 SPIREDOC-4512 |
Fixes the issue that the application threw the exception "NullPointerException" when loading Word documents. |
| Bug | SPIREDOC-4419 | Fixes the issue that the application threw the exception "ArrayIndexOutOfBoundsException" when updating Toc field. |
| Bug | SPIREDOC-4420 | Fixes the issue that the application threw the exception "Width(0) and height(0) cannot be<=0" when loading Word documents. |
| Bug | SPIREDOC-4462 SPIREDOC-4466 |
Fixes the issue that the application threw the exception "IllegalArgumentException" when loading Word documents. |
| Bug | SPIREDOC-4473 SPIREDOC-4484 |
Fixes the issue that the application threw the exception "An element with the same key already exists in the dictionary" when loading Word documents. |
| Bug | SPIREDOC-4501 | Fixes the issue the tick of checkbox lost after converting Word to PDF. |
| Bug | SPIREDOC-4503 | Fixes the issue that the application threw the exception "ImageLoadException" when loading Word documents. |
| Bug | SPIREDOC-4504 | Fixes the issue that the application threw the exception "Error reading EMF metafile" when loading Word documents |
| Bug | SPIREDOC-4505 | Fixes the issue that there was extra content after converting Word to PDF. |
| Bug | SPIREDOC-4611 | Fixes the issue that the application threw the exception "ClassCastException" when converting Word to PDF. |
| Bug | SPIREDOC-4656 | Fixes the issue that the application threw the exception "ArrayIndexOutOfBoundsException" when converting HTML to PDF. |
| Bug | SPIREDOC-4810 | Fixes the issue that the application threw the exception "Value was either too large or too small for an Int32" when saving Word document. |
| Bug | SPIREDOC-4959 | Fixes the issue that the list number in table was lost after converting Word to HTML. |
| Bug | SPIREDOC-4972 | Fixes the issue that the application threw the exception "No have this value 9" when saving Word to HTML. |
| Bug | SPIREDOC-5051 | Fixes the issue that caused wrong directory of output after converting Word to SVG on Linux. |
| Bug | SPIREDOC-5071 | Fixes the issue that failed to remove the background color of shape. |
| Bug | SPIREDOC-5111 | Fixes the issue that the pagination was incorrect after converting Word to PDF. |
| Bug | SPIREDOC-5143 | Fixes the issue that the application threw the exception "NullPointerException" when saving Word to image. |
| Bug | SPIREDOC-5167 | Fixes the issue that the field value could not be obtained successully after adding Style_Ref field |
| Bug | SPIREDOC-5234 | Fixes the issue that the application threw the exception "Index is less than 0 or more than or equal to the list count" when loading HTML file. |
| Bug | SPIREDOC-5333 | Fixes the issue that the hyperlink lost after converting Word to PDF. |
| Bug | SPIREDOC-5412 | Fixes the issue that there was extra blank pages after converting Word to PDF. |
| Bug | SPIREDOC-5428 SPIREDOC-5469 |
Fixes the issue that the application threw the exception "StackOverflowError" when comparing two Word documents. |
| Bug | SPIREDOC-5438 | Fixes the issue that the application threw the exception "ClassCastException" when saving .doc to .docx. |
| Bug | SPIREDOC-5450 | Fixes the issue that after setting document property, the content was incorrect after saving Word to PDF |
| Bug | SPIREDOC-5479 | Fixes the issue that the content was incorrect after converting Word to Image. |
| Bug | SPIREDOC-5517 | Fixes the issue that the application threw the "Value was either too large or too small for an Int32" when loading Word documents. |
| Bug | SPIREDOC-5535 | Fixes the issue that adding watermark cost long time. |
| Bug | SPIREDOC-5541 | Fixes the issue that the checkbox was lost after converting Word to Image. |
| Bug | SPIREDOC-5542 | Fixes the issue that the application threw the exception "x-windows-950' is not a supported encoding" when loading Word document on system with Taiwan language(traditional Chinese characters) |
| Bug | SPIREDOC-5547 | Fixes the issue that the application threw the "Cannot find a required cmap encoding record" when converting Word to PDF. |
| Bug | SPIREDOC-5550 | Fixes the issue that the orientation was incorrect after converting Word to PDF. |
| Bug | SPIREDOC-5556 | Fixes the issue that the symbol was incorrect after converting Word to PDF. |
| Bug | SPIREDOC-5557 | Fixes the issue that the application threw the "Unknown char: c" when converting HTML to Word. |