from ironpdf import * markdown_string = "This text is ***really important***." # Instantiate Renderer renderer = ChromePdfRenderer() # Load the MD (Markdown) as File or String pdf_from_md_file = renderer.RenderMarkdownFileAsPdf("report.md") pdf_from_md_string = renderer.RenderMarkdownStringAsPdf(markdown_string) pdf_from_md_file.SaveAs("pdf_from_md_file.pdf") pdf_from_md_string.SaveAs("pdf_from_md_string.pdf")
Markdown 轉換成 PDF