docx4j v2.2.0 Release Notes

  • ๐Ÿš€ Release date

    28 July 2009

    ๐Ÿš€ Contributors to this release

    Serge Grachov Jason Harrop Adam Schmideg Leigh

    Major Changes

    CustomXml applyBindings works (to proof of concept level)

    Differencing improvements

    Table model and Converter interface. Use of this table model in HtmlExporterNG, ๐Ÿ”€ to support merged cells. Contributed by Adam Schmideg.

    ๐Ÿ†• New class PropertyResolver [757], which works out the actual properties which apply to a paragraph or a run.

    ๐Ÿ‘ Header/footer support

    ๐Ÿ‘ PDF via XSL FO or iText (in addition to existing support for via HTML)

    "Next Generation" HTML Exporter, which only needs the main document part as input, and which takes advantage of docx4j's knowledge of the document (via extension functions) so that most of the logic is done in Java (as opposed to xslt).

    ๐Ÿ‘Œ Improvements to font handling/substitution (inc auto-detect option)

    Image insertion convenience methods

    Other Changes (not exhaustive)

    [856] Start of work on NamespacePrefixMappers which work with Java 6 (ie if you don't have JAXB in your endorsed dir, or can't (eg Java Web Start)). [Not finished until v2.2.1!]

    ๐Ÿšš [854] Remove ContentTypeManager interface; replace it with implementation. ContentTypeManager: change semantics of isContentTypeRegistered, so that it means 'is default content type registered'.

    [847] Relativise file URLs for images, based on contribution by Leigh; Only relativise path if its not the tmpdir, because the tmp dir is used for pdf output

    โšก๏ธ [841] Updated createImgE10 extension function to point to class org.docx4j.model.images.WordXmlPicture.
    Reported and fix suggested by Leigh

    [816] Bug fix: Close image files properly; patch contributed by Serge Grachov

    [815] Store/retrieve key/value pairs in sdtPr/tag

    [808] Text extraction

    [799] If no directory for saving images is specified, embed the image using a data: URI

    [784] LoadFromZipFileNG, suports reading from an input stream

    ๐Ÿ“ฆ [776] Renamed package out.xmlPackage to out.FlatOpcXml Renamed XmlPackageCreator to FlatOpcXmlCreator

    ๐Ÿ“ฆ [771] Renamed XmlPackageImporter to FlatOpcXmlImporter

    ๐Ÿšš [697] Remove fop-fonts; to be replaced with a complete fop jar

    [650] Convenience method to restart numbering

    [633] Add a createImagePart signature which allows you to specify the source part of the image part's rel, so that the image can be added to eg a header.

    ๐Ÿ’… [625] Add an HtmlSetting 'conditionalComments' which defaults to turning these off in the style sheet, since FlyingSaucer PDF Renderer renders <![if!supportMisalignedColumns]><![endif]> verbatim, and there have been reports of Xerces SAX parser not liking these:

    [607] Make it easy for a part to have its own NamespacePrefixMapper. (eg for relationships part, we want the rels namespace to be the default namespace)