Convert Markdown to PDF

[ ]

This feature is supported by version 19.6 or greater.

Aspose.PDF for .NET provides the functionality to create a PDF document based on input Markdown data file. In order to convert the markdown to PDF, you need to initialize the Document using MdLoadOptions. The following code snippet shows how to use this functionality:

// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_AsposePdf_DocumentConversion();
// Open Markdown document
Document pdfDocument= new Document(dataDir + "", new MdLoadOptions());
// Save document in PDF format
pdfDocument.Save(dataDir + "MarkdownToPDF.pdf");