Markdown to PDF
IronPDF can render Markdown (MD) documents from File or String. If you want to learn more about how to convert Markdown to PDF using IronPDF, you can visit the IronPDF Markdown to PDF Conversion page.
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 Markdown (MD) documents from File or String. If you want to learn more about how to convert Markdown to PDF using IronPDF, you can visit the IronPDF Markdown to PDF Conversion page.
9 .NET API products for your office documents