Markdown to PDF
IronPdf can render MD (Markdown) documents from File or String.
using IronPdf; const string exampleMdString = "This text is ***really important***."; // Instantiate Renderer var renderer = new ChromePdfRenderer(); // Load the MD (Markdown) as File or String PdfDocument pdfFromFile = renderer.RenderMarkdownFileAsPdf("report.md"); PdfDocument pdfFromString = renderer.RenderMarkdownStringAsPdf(exampleMdString); pdfFromFile.SaveAs("report.pdf"); pdfFromString.SaveAs("string.pdf");
Imports IronPdf Private Const exampleMdString As String = "This text is ***really important***." ' Instantiate Renderer Private renderer = New ChromePdfRenderer() ' Load the MD (Markdown) as File or String Private pdfFromFile As PdfDocument = renderer.RenderMarkdownFileAsPdf("report.md") Private pdfFromString As PdfDocument = renderer.RenderMarkdownStringAsPdf(exampleMdString) pdfFromFile.SaveAs("report.pdf") pdfFromString.SaveAs("string.pdf")
Install-Package IronPdf
IronPdf can render MD (Markdown) documents from File or String.
9 .NET API products for your office documents