📜  将 html 转换为 pdf - Html 代码示例

📅  最后修改于: 2022-03-11 14:52:54.995000             🧑  作者: Mango

代码示例1
var htmlContent =
"""



  

  
    

PDF Generated with flutter_html_to_pdf plugin

Sample HTML Table
Month Savings
January 100
February 50

Image loaded from web

web-img """; var targetPath = "/your/sample/path"; var targetFileName = "example_pdf_file" var generatedPdfFile = await FlutterHtmlToPdf.convertFromHtmlContent( htmlContent, targetPath, targetFileName);