如何使用C#dotnet将HTML内容导出为PDF [英] How to export a html content to PDF using c# dotnet

查看:75
本文介绍了如何使用C#dotnet将HTML内容导出为PDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


任何人都可以让我知道如何将html内容导出为pdf格式,就像我们对excel或csv格式所做的那样.我不想使用任何其他软件或第三方工具来做.


谢谢

Shiv

Hi,
Can any one let me know how to export a html content to pdf format , as we do it for excel or csv format. I don want use any of the other software or a third party tool to do.


Thanks

Shiv

推荐答案

好,在这里看看:
Pdfizer,C#中的哑HTML到PDF转换器 [以编程方式将文档轻松转换为PDF [ iTextsharp文章上的CP结果 [使用C#(.NET 2.0)和iTextSharp创建PDF表 [使用C#2.0创建PDF文件的教程 [
Well, have a look here:
Pdfizer, a dumb HTML to PDF converter, in C#[^]
Programmatically Convert Documents to PDFs the Easy Way[^]

Then there is iTextsharp:
CP result on iTextsharp articles[^], few of them:
Creating PDF Tables using C# (.NET 2.0) and iTextSharp[^]
Tutorials on creating PDF files using C# 2.0[^]

UPDATE:
I don want use any of the other software or a third party tool to do.
If you don''t want to use any third party then you won''t be able to do it. .NET does not have any control or class to do the same for you.


这篇关于如何使用C#dotnet将HTML内容导出为PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆