.NET library for converting documents (Open XML, Office 97-2003, RTF, Markdown).
$ dotnet add package DocSharp.Binary.CommonDocSharp is a pure C# library to convert between document formats without Office interop or native dependencies.
The following packages are currently available:
There is no common DOM to manipulate or generate documents, this library is mainly for conversion. However, the Docx package provides some helper methods on top of the Open XML SDK that may be extended in the future.
If your main purpose is creating documents from scratch you can consider the following libraries: OfficeIMO, OpenXML-Office, ClosedXML, ShapeCrawler.
<mark>ImagesOutputFolder needs to be set to an existing directory, otherwise images are skipped. An absolute URI is used by default; to produce a relative URI set ImagesBaseUriOverride to any not-null folder path (empty string or "." means same folder as the Markdown file, "../images" means images subfolder in the parent folder).SkipImages to true.ImagesBaseUri needs to be set to an absolute local directory path or http(s) URL, which will be combined with the image URL at runtime, such as: C:\Data + ./images/image1.jpg (all kind of URIs should be recognized).<u>, <sup>, <sub>, <mark>, ...), math and other extensionsDependencies:
Forked:
Others:
DocSharp is licensed under MIT license and can be used for both open source and commercial projects.