WordToMarkdownConverter Class

Converts Word (.docx) documents to Markdown text with their headings, lists, tables, links, notes and pictures

Definition

Namespace: EvoPdf.Next
Assembly: EvoPdf.Next.WordToPdf (in EvoPdf.Next.WordToPdf.dll) Version: 15.1.0
C#
public class WordToMarkdownConverter
Inheritance
Object    WordToMarkdownConverter

Constructors

WordToMarkdownConverter Creates a Word to Markdown converter with default options

Properties

ImageFileName The name of the image files saved when ImageMode is File, without number and extension. The default value is "image"
ImageMode The way the pictures of the document are written in Markdown. The default value is None
ImagesFolder The folder where the images are saved as files when ImageMode is File
ImagesLinkPath The path written before the image file names in the Markdown links when ImageMode is File. By default it is the name of the images folder
OpenPassword Gets or sets the password to open the Word document, when the document is protected with a password

Methods

ConvertToMarkdown(Byte) Converts a Word document given as a byte array to Markdown
ConvertToMarkdown(String) Converts a Word file to Markdown
ConvertToMarkdownAsync(Byte, CancellationToken) Asynchronously converts a Word document given as a byte array to Markdown
ConvertToMarkdownAsync(String, CancellationToken) Asynchronously converts a Word file to Markdown
ConvertToMarkdownFile(Byte, String) Converts a Word document given as a byte array to Markdown and saves the text in a file in UTF-8 encoding
ConvertToMarkdownFile(String, String) Converts a Word file to Markdown and saves the text in a file in UTF-8 encoding
ConvertToMarkdownFileAsync(Byte, String, CancellationToken) Asynchronously converts a Word document given as a byte array to Markdown and saves the text in a file in UTF-8 encoding
ConvertToMarkdownFileAsync(String, String, CancellationToken) Asynchronously converts a Word file to Markdown and saves the text in a file in UTF-8 encoding
Equals
(Inherited from Object)
Finalize
(Inherited from Object)
GetHashCode
(Inherited from Object)
GetType
(Inherited from Object)
MemberwiseClone
(Inherited from Object)
ToString
(Inherited from Object)

See Also