Aspose.Words for Java 14.1.0 Release Notes

Aspose.Words for Java 14.1 Release Notes

Major Features

There are 118 improvements and fixes in this regular monthly release. The most notable are:

  • Support for password-protected documents created in MS Word 2013
  • New public API to control rendering of tracking changes / revisions
  • Reduced peak memory usage for large documents
  • Performance improvements to the page layout engine
  • Rendering of hidden text is improved
  • Calculation of line height for Chinese characters improved
  • Export comments to HTML as footnotes
  • Export of drop-down fields and form fields as text into HTML
  • Document headers and footers can now be preserved in DOC-HTML-DOC roundtrip
  • DrawingML Soft Edge rendering effect implemented
  • DrawingML preset shadows rendering implemented
  • Hyperlink fragmentation in PDF resolved

All Changes

KeySummaryCategory
WORDSJAVA-419Symbol dissapiar in Embedded OLE EquationBug
WORDSJAVA-434Shifted position for WordArts with pathInfo.getTrim() = falseBug
WORDSJAVA-597WordArt shape is shrinked in PDFBug
WORDSJAVA-835INCLUDETEXT: Error! Not a valid filename.Bug
WORDSJAVA-839Vertical shift of WordArtBug
WORDSJAVA-444Consider adding a version number into the file name of JAR.Enhancement
WORDSJAVA-557Support Black&White transform on metafiles.Enhancement
WORDSJAVA-833Add to Manifest Codebase, Permissions attributes for RIA (Rich Internet Applications).Enhancement
WORDSJAVA-834Load Document by URI.Enhancement
WORDSJAVA-836Fix increment portability of WordArtApsBuilder*.Enhancement
WORDSJAVA-823LoadOptions.setEncoding throws java.lang.IllegalArgumentExceptionException
WORDSJAVA-608.Net-style DateTime parsing and formattingFeature
WORDSJAVA-778Gold comparer refactoryFeature
WORDSJAVA-808Add OSGI-Bundle metadata to Jar filesFeature
WORDSJAVA-825Consider adding a version number into the file name of JAR.Feature
WORDSJAVA-827Add ImageBinarization option to Tiff in Java.Feature
WORDSJAVA-837OfficeCrypto to support Sha512 hasherFeature
WORDSNET-3025Some characters are not displayed during inserting.Bug
WORDSNET-4522STYLEREF field in header/footer is improperly updated upon renderingBug
WORDSNET-5388STYLEREF field shows error “Error! No text of specified style in document.” in the output PDF document.Bug
WORDSNET-6452Doc to PDF conversion issue with fields in page headerBug
WORDSNET-7519OL element should not be nested within element OL in HtmlBug
WORDSNET-7532Docx to RTF conversion issue with font size.Bug
WORDSNET-7690/cjk line spacing/Incorrect LineSpacing results in an incorrect number of pagesBug
WORDSNET-8561TOC hyperlinks and superscript hyperlinks split into multiple fragments in output PDFBug
WORDSNET-8623/asian baseline/ Empty page is inserted after conversion from Doc to PDFBug
WORDSNET-8637Images are placed incorrectly after RTF-HTML-DOCX round-tripBug
WORDSNET-8638Font size of table text gets smaller after export to HTMLBug
WORDSNET-8668A hyperlink causes LinkAnnotation to be generated for each wordBug
WORDSNET-8820Unwanted margin-left is added to <p> during exporting a Docx to HtmlBug
WORDSNET-8950Numbers with digit grouping break order of RTL text during HTML importBug
WORDSNET-8953Columns of adjacent tables get misaligned after DOCX-HTML-DOCX round tripBug
WORDSNET-8954Image is placed incorrectly when exported to HTMLBug
WORDSNET-9039STYLEREF field value in Header/Footer is not correct when saving to PDFBug
WORDSNET-9040Document.UpdateFields remove table’s cellBug
WORDSNET-9162MailMergeCleanupOptions.RemoveUnusedFields does not remove unmerged merge fields during mail mergeBug
WORDSNET-9201Mimic MS Word for rounding decimal numbers to correct precisionBug
WORDSNET-9225A Table gets resized during open/save a DOCXBug
WORDSNET-9228Incorrect rendering of StyleRef field in header of Word documentBug
WORDSNET-9229Unexpected ‘ul’ tag when converting Docx to ePubBug
WORDSNET-9239Document.UpdateFields method does not calculate a TOC field in DOCBug
WORDSNET-9303Aspose.Words hangs during rendering DOC to HTMLBug
WORDSNET-9305An Elbow Arrow Connector Shape is not preserved during rendering to fixed page formtsBug
WORDSNET-9334Font size of text imported from <pre> HTML elements is too largeBug
WORDSNET-9351“Error : Unknown op code for conditional” is shown after calling Document.UpdateFieldsBug
WORDSNET-9356/asian baseline/ A Paragraph renders on to the next page in PDFBug
WORDSNET-9375SmartArt does not preserve when Doc file is converted to DocxBug
WORDSNET-9404HYPERLINK field color and formatting is not preserved when saving ODT to Word formatsBug
WORDSNET-9405HYPERLINK field color and formatting is not preserved when saving ODT to Word formatsBug
WORDSNET-9420OfficeMath equations are incorrectly rendering to PDFBug
WORDSNET-9426A list paragraph doesn’t use existing style in destination document when using ImportFormatMode.UseDestinationStylesBug
WORDSNET-9437Line numbering overlap in fixed page formatsBug
WORDSNET-9439Problems with template names containing the “}” characterBug
WORDSNET-9441Font size in table cells is not preserved during saving DOCX to PDF/HTMLBug
WORDSNET-9442MS Word throws error when loading Aspose.Words generated output document with itBug
WORDSNET-9460A table in Hebrew language document becomes invisible during open/saveBug
WORDSNET-9466UpdateFields does not calculate value of a TOCBug
WORDSNET-9471GroupShape’s size is changed after re-saving the Doc fileBug
WORDSNET-9480Formula (OfficeMath) background color is lost after conversion from Docx to HTMLBug
WORDSNET-9481Word to HTML conversion issue with formula (OfficeMath) square bracketsBug
WORDSNET-9483Almost all text is formatted as italic in output HtmlBug
WORDSNET-9484Suppress rendering of all hidden content in output PdfBug
WORDSNET-9487Aspose removes header and footer during open/save ODTBug
WORDSNET-9488Bold font formatting is not preserved when saving to HtmlFixed formatBug
WORDSNET-9491A Table renders on to the next page in PdfBug
WORDSNET-9517Bullets do not render in PDF for tracked documentBug
WORDSNET-9527Some words in HtmlFixed overlap next consecutive wordBug
WORDSNET-9533Shape size is changed after re-saving the Doc fileBug
WORDSNET-9553After fixing WORDSNET-9229 inheritance of list item’s properties is violated.Bug
WORDSNET-3520/chinese line breaking:40/ Part of content was moved to the next row during renderingEnhancement
WORDSNET-4128/asian baseline/ Fix height of lines containing mixed Asian and non-Asian textEnhancement
WORDSNET-4130/asian baseline/ PDF rendering: part of text from second page jumps to the first page after renderingEnhancement
WORDSNET-8251Word art style 22 is not preserved during rendering to PDFEnhancement
WORDSNET-8299Import paragraphs with hanging indent from HTMLEnhancement
WORDSNET-8636Improve HTML round-trip of document headers and footersEnhancement
WORDSNET-8902WordArt // Multiline // Docx to PDF conversion issue with ShapeType.TextPlainText (Multi line watermark alignment issue)Enhancement
WORDSNET-9299WordArt // Multiline // Alignment of WordArt Shape text is not preserved during rendering to PDFEnhancement
WORDSNET-9376WordArt // Multiline // WordArt does not preserve when Doc file is converted to PDFEnhancement
WORDSNET-9389Provide a way in API to down sample only selected images in PDFEnhancement
WORDSNET-9401Consider paddings and borders width in HTML cell width computing algorithm during export tables to HTMLEnhancement
WORDSNET-9414Consider paddings and borders width in AW cell width computing algorithm during import HTML tablesEnhancement
WORDSNET-9415Save corrected table width during export to HTMLEnhancement
WORDSNET-9438Correct table width during loading from HTMLEnhancement
WORDSNET-9446Provide HtmlSaveOptions.ExportDropDownFormFieldAsText propertyEnhancement
WORDSNET-9458Image is placed incorrectly when exported to HTMLEnhancement
WORDSNET-9459Image is placed incorrectly when imported from HTMLEnhancement
WORDSNET-9467Doc to Pdf conversion issue with contents positionEnhancement
WORDSNET-9521A table overlaps the content of another Table in fixed page formatsEnhancement
WORDSNET-9567Write an empty value to FormField in the same way like MS Word does.Enhancement
WORDSNET-8418/rtl + absolute tab/ System.InvalidOperationException while conversion from Docx to PDFException
WORDSNET-8649/rtl + absolute tab/ InvalidOperationException occurs when rendering Special characters to fixed page formatsException
WORDSNET-9288System.OutOfMemoryException is thrown while conversion from Docx to Pdf.Exception
WORDSNET-9326Unable to load RTF file into Aspose.Words DOMException
WORDSNET-9340Aspose.Words.FileCorruptedException occurs when loading RTF fileException
WORDSNET-9372CLONE - Document clones with multi threading do not save the document properlyException
WORDSNET-9413System.ArgumentException is thrown while appending documentsException
WORDSNET-9473Aspose.Words.FileCorruptedException is thrown while loading WordML fileException
WORDSNET-9475Document.AppendDocument method throws System.ArgumentException exceptionException
WORDSNET-9503Document.AppendDocument method throws System.ArgumentException exceptionException
WORDSNET-9522Aspose.Words.FileCorruptedException is thrown while loading Docx fileException
WORDSNET-9570UpdateFields throws exception upon encountering invalid path in INCLUDETEXT fieldException
WORDSNET-9572LayoutCollector.GetEntity method returns NULL object when instantiating LayoutEnumerator before LayoutCollectorException
WORDSNET-9594System.NullReferenceException is thrown while converting Docx to PdfException
WORDSNET-333Add possibility of loading document via URIFeature
WORDSNET-4705Export comments to HTML as footnotesFeature
WORDSNET-7964Load Office 2013 encrypted document into Aspose.Words DOMFeature
WORDSNET-7967Full reflection picture effect is not rendered in fixed page formatsFeature
WORDSNET-8376Softened/rounded edges of the image (feathering) are not retained in PDFFeature
WORDSNET-8647Provide roundtrip of export comments to HTML and import back to AWFeature
WORDSNET-9045Roundtripping of footnotes/endnotes Doc to HTML and HTML to DOCFeature
WORDSNET-9287Tight reflection picture effect is not preserved in fixed page formatsFeature
WORDSNET-9354Provide options to change colors of Track ChangesFeature
WORDSNET-9408Layout of table is not preserved during saving a Odt to DocxFeature
WORDSNET-9433Size of Aspose.Words generated PDF is too bigPerformance
WORDSNET-9443Reduce the size of Span instancesPerformance
WORDSNET-9455Aspose.Words hangs during open/save a DOCPerformance
WORDSNET-5322Row properties are copied over from the previous rowRegression
WORDSNET-9387NullReferenceException occurs during open/save a DOCRegression

Comments inside Microsoft Word documents are exported to HTML as Footnote elements. This behavior matches how Microsoft Word exports comments to HTML and greatly improves document fidelity and the ability to round trip such documents from DOC to HTML to DOC.

The property FieldOptions.CustomTocStyleSeparator has been added allowing you to sets custom style separator for \t switch in TOC field.By default, custom styles defined by the \t switch in the TOC field are separated by a delimiter taken from the current culture. This property overrides that behavior by specifying a user defined delimiter.

provides members to control how revisions are displayed in rendered documents.

is a new member added to control under which circumstances when images should be down sampled. Any image which has a PPI less than the given value will not be down sampled. A value of 0 is equal to situation before this option was introduced.Also PdfSaveOptions.DownsampleImages and PdfSaveOptions.DownsampleResolution properties have been marked with Obsolete attribute. TheDownsampleOptions class has been introduced to keep all related options in one place.

In previous versions resetting a form field text by passing an empty string to FormField.Result would result in a form field that could not be properly selected in the output document. This behavior has been fixed and form fields reset in this fashion now appear correctly and can be selected.

In previous versions hidden content would be exported to PDF. This behavior has been corrected and any hidden content does not appear in the output PDF.

Headers and footers are not native to HTML formats as they are page-less therefore they are normally exported as plain text and when reopened in Aspose.Words, they are no longer read as actual header footers.This version of Aspose.Words introduces proper round-trip of headers and footers and does so by writing the content to HTML as div elements to separate them from the main text in HTML documents. A custom HTML attribute ‘data-headerfooter-type’ is used to distinguish the div elements as actual header footers when reloading the document.h3. Node.DeepClone can now throw an Exception

Node.DeepClone can now throw an exception due to improvements that were made to the .NET source code base. This can cause existing code which uses this member to not compile if the surrounding code is not set to deal with the exception.

Starting from 14.1.0 version Aspose.Words supports rendering of SoftEdge effect.

The ability to export drop down form fields in Word documents as text when saving to HTML has been added. By default such fields are exported as “SELECT” tag in HTML however by using HtmlSaveOptions.ExportDropDownFormFieldAsText output can be changed to plain text.

Starting from 14.1.0 version Aspose.Words supports multi-line WordArt objects, but with the following restrictions:1. Only Left, Right and Center text alignments are supported.2. Bezier fit for multiline WordArt doesn’t correctly work with the following curves: “Deflate Inflate”, “Deflate Inflate Deflate”, “Button”, “Circle (Curve)”, “Arc Up” and “Arc Down”.

The document constructor used to load external documents into the Aspose.Words DOM now accepts a URI parameter to load documents from the web. By default when an URI is passed to to the Document constructor the designated file is retrieved using a GET operation of HttpWebRequest. Further ability to control how the document is loaded from the URI can be controlled using IResourceLoadingCallback.