Markdown转PDF
IronPdf 可渲染 MD (Markdown) 文件或字符串中的文件。
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 可渲染 MD (Markdown) 文件或字符串中的文件。