将完整的HTML文档编写为PDF. [英] Writing full HTML document To PDF.

查看:97
本文介绍了将完整的HTML文档编写为PDF.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友,

我知道如何在PDF上创建简单的文档单行,但这一次很大.

想象一下像下面这样的文档,其中有一些静态文本和空白将被动态填充,并且整个文档应该以PDF格式导出.

我怎样才能做到这一点?

请这样做.

这是 ______.如何转换____?


现在,如果我用一些文本框编写codeproject,它会显示为第一个空白,第二个显示相同.所以,伙计们帮帮忙.

解决方案

是的,你可以做到.有许多免费工具可将html转换为pdf.像iTextSharp,PDfSharp,xHTMLToPdf等等.

根据我对您的要求的经验,iTextSharp最适合此要求.搜索.网上没有可用的示例和代码.


请参见此处 [ ^ ].

不要重新发明轮子.

Google提供了许多免费的PDF程序供您选择.
与从头开始编写将以有限方式使用的内容相比,下载这些内容要容易得多.

有时懒惰是国王:)


Hello friends,

I know how to create a simple document single line on PDF, but this time its big.

Imagine a document like below with some static text and blank are to be filled dynamically and this whole document should be in exported in PDF.

How can I do this?

Please help in doing so.

This is ______. How can I convert ____ ?


Now if I write codeproject with some textbox and it show come to first blank and same for 2nd. So guy help out.

解决方案

Yes you can do it. There are many free tools available that convert html to pdf. Like iTextSharp, PDfSharp , xHTMLToPdf and many more.

As my experience for your requirement iTextSharp is best for that. Search on that. There are lost of example and code available on net for that.


See here[^].


Don''t reinvent the wheel.

There are many free PDF programs out there, google and choose.
It is much easier to download one these than to write from scratch what will be used in a limited manner.

Sometimes laziness is king :)


这篇关于将完整的HTML文档编写为PDF.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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