docx4j-ImportXHTML.NET 6.0.1.2

Converts XHTML to OpenXML WordML (docx) using docx4j.NET (licensed under ASLv2) and Flying Saucer. This project is licensed under LGPL v2.1 (or later), since that's the license used by Flying Saucer.

Install-Package docx4j-ImportXHTML.NET -Version 6.0.1.2
dotnet add package docx4j-ImportXHTML.NET --version 6.0.1.2
<PackageReference Include="docx4j-ImportXHTML.NET" Version="6.0.1.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add docx4j-ImportXHTML.NET --version 6.0.1.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

To try it, in Visual Studio:

  1. create a new console app
  2. use NuGet Package Manager to fetch this (Install-Package ...)
  3. project properties, change startup object to docx4jImportXHTML.NET.samples.docx.ConvertInXHTMLFragment
  4. Start without Debugging (Ctrl+F5)

(Don't start debugging, since that's very slow. Also, note the first execution takes longer, loading JAXB Context etc. If your code doesn't exit, subsequent imports will be quicker)

For more sample code (in Java though) see https://github.com/plutext/docx4j-ImportXHTML/tree/master/src/samples/java/org/docx4j/samples

For questions/discussion, you can post to either (but not both, please) StackOverflow or https://www.docx4java.org/forums/xhtml-import-f28/

For issues/bugs relating generally to XHTML importing, https://github.com/plutext/docx4j-ImportXHTML/issues

For issues/bugs specific to .NET, please use https://github.com/plutext/docx4j-ImportXHTML.NET/issues

To try it, in Visual Studio:

  1. create a new console app
  2. use NuGet Package Manager to fetch this (Install-Package ...)
  3. project properties, change startup object to docx4jImportXHTML.NET.samples.docx.ConvertInXHTMLFragment
  4. Start without Debugging (Ctrl+F5)

(Don't start debugging, since that's very slow. Also, note the first execution takes longer, loading JAXB Context etc. If your code doesn't exit, subsequent imports will be quicker)

For more sample code (in Java though) see https://github.com/plutext/docx4j-ImportXHTML/tree/master/src/samples/java/org/docx4j/samples

For questions/discussion, you can post to either (but not both, please) StackOverflow or https://www.docx4java.org/forums/xhtml-import-f28/

For issues/bugs relating generally to XHTML importing, https://github.com/plutext/docx4j-ImportXHTML/issues

For issues/bugs specific to .NET, please use https://github.com/plutext/docx4j-ImportXHTML.NET/issues

Release Notes

Release based on docx4j-ImportXHTML 6.0.1

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
6.0.1.2 246 8/13/2018
3.2.0.1 1,084 9/2/2014
3.0.1 623 3/6/2014