带有MigraDoc的PDFsharp是否支持HTML语法? [英] Does PDFsharp with MigraDoc support HTML syntax?
本文介绍了带有MigraDoc的PDFsharp是否支持HTML语法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
带有MigraDoc的PDFsharp是否支持HTML语法?
< a>< strong>ETC.
如果是,我如何在文档上实现它?
解决方案
否,它不直接支持HTML.您必须编写一个代码,以读取HTML并使用MigraDoc或PdfSharp创建PDF.
要创建PDF,您需要使用API,例如: .AddPage(...)
, .Draw(...)
, .DrawRectangle(...)
您有一个完整示例在这里.
您还可以使用该项目将HTML转换为PDF: https://wkhtmltopdf.org/ >
Does PDFsharp with MigraDoc support HTML syntax?
<a> <strong> etc.
If yes, how can I implement it on the document?
解决方案
No, it doesn't support HTML directly. You have to write a code that reads the HTML and create the PDF using either MigraDoc or PdfSharp.
To create the PDF, you need to use the API, for instance: .AddPage(...)
, .Draw(...)
, .DrawRectangle(...)
You have a full example here.
You can also use this project to convert HTML to PDF: https://wkhtmltopdf.org/
这篇关于带有MigraDoc的PDFsharp是否支持HTML语法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文