详情介绍
ICSharpCode.SharpZipLib.dll (This component is used to parse the HTML)
itextsharp.dll (This component is used by Pdfizer to create the PDF document)
Pdfizer.dll (This is the main component with the HtmlToPdf object that executes the conversion operations).
Now we can add some code to use this component. Here is the code to generate a PDF from some HTML specified:
// set a path to where you want to write the PDF to.string sPathToWritePdfTo = @"C:\new_pdf_name.pdf"; // build some HTML text to write as a PDF. You could also // read this HTML from a file or other means.// NOTE: This component doesn't understand CSS or other // newer style HTML so you will need to use depricated // HTML formatting such as the <font> tag to make it look correct.System.Text.StringBuilder sbHtml = new System.Text.StringBuilder();sbHtml.Append("<html>");sbHtml.Append("<body>");sbHtml.Append("<font size='14'>My Document Title Line</font>");sbHtml.Append("<br />");sbHtml.Append("This is my document text");sbHtml.Append("</body>");sbHtml.Append("</html>"); // create file stream to PDF file to write tousing (System.IO.Stream stream = new System.IO.FileStream
(sPathToWritePdfTo, System.IO.FileMode.OpenOrCreate)){ // create new instance of Pdfizer Pdfizer.HtmlToPdfConverter htmlToPdf = new Pdfizer.HtmlToPdfConverter(); // open stream to write Pdf to to htmlToPdf.Open(stream); // write the HTML to the component htmlToPdf.Run(sbHtml.ToString()); // close the write operation and complete the PDF file htmlToPdf.Close();}This component also supports PDF Chapters. You could add a single line of code right before the Run() method to make the HTML specified a single chapter like this:
// open stream to write Pdf to tohtmlToPdf.Open(stream); // add a chapter for this HTMLhtmlToPdf.AddChapter("My Chapter Title 1"); // write the HTML to the componenthtmlToPdf.Run(sbHtml.ToString());Repeat the AddChapter() and Run() methods for each chapter you want to add and then Close() to commit it to the PDF.
下载地址
人气软件

Adobe Acrobat Pro DC 2022.001.20085 64位 中文破解版(附安装教
Adobe Acrobat Pro DC 2026 v2026.001.21563 英/中文直装免费版(
Adobe Acrobat Pro DC v2026.001.21563 中文免费直装版(附教程)
Adobe Acrobat Pro DC v2026.001.21563 中文正式免费版(附安装教
Adobe Acrobat Pro DC v2026.001.21563 中文免费绿色便携版 64位
Foxit PDF Editor(PDF编辑器) v2023.3.0.23028 中文绿色版
Adobe Acrobat Reader DC v2026.001.21563 中文绿色免安装便携版![VCE文件浏览 Visual CertExam Suite 1.9 特别版[附破解文件]](//img.jbzj.com/do/templets/img/default.gif)
VCE文件浏览 Visual CertExam Suite 1.9 特别版[附破解文件]
Adobe Acrobat PRO DC v2026.001.21563 32位 中文正式直装版(附
PDF编辑器Adobe Acrobat Pro DC 2026.001.21563 中文绿色便携免
相关文章
-
浙舟OFD阅读器 v2.0.4.1049 官方安装版浙舟OFD阅读器提供PDF和OFD编辑、注释以及pdf、ofd、xps格式转换,欢迎下载使用...
-
Koodo Reader(电子书阅读器) v2.3.4 免费Linux版Koodo Reader电脑版是一款功能强大的跨平台电子书阅读器,格式支持 epub, pdf, mobi, azw3, txt, djvu, markdown, fb2, cbz, cbt, cbr, rtf 和 docx...
-
Readest(电子书阅读器) v0.11.1 安装免费版Readest 是一款开源电子书阅读器,专为沉浸式和深度阅读体验而设计。它是对Foliate的现代重写,利用Next. js 15和Tauri v2在macOS、Windows、Linux和Web上提供无缝的跨平台...
-
Flip PDF Plus Corporate(PDF电子书翻页工具) v7.7.22 英文免费安装版Flip PDF Plus Corporate一款简单好用的PDF文件翻页效果增强工具,可以将PDF或者图片转换成翻页电子杂志,支持添加多媒体文件进行PDF文件的转换等操作等 ...
-
Readest(电子书阅读器) v0.11.1 绿色免安装版Readest绿色版是一款好用的电子书阅读器,为追求沉浸式深度阅读体验的用户打造,支持多种电子书格式,包括EPUB、MOBI、AZW3和PDF等,欢迎下载体验...
-
Olib(免费下载zlibrary书籍) v2.4.4 中文绿色永久免费版Olib是一款可免费高速下载zlibrary书籍的开源软件,无任何次数限制,有了Olib再也不需要去找域名和镜像网站了,Z-Library 号称“全球最大的数字图书馆”和“全球最大的科学...
下载声明
☉ 解压密码:www.jb51.net 就是本站主域名,希望大家看清楚,[ 分享码的获取方法 ]可以参考这篇文章
☉ 推荐使用 [ 迅雷 ] 下载,使用 [ WinRAR v5 ] 以上版本解压本站软件。
☉ 如果这个软件总是不能下载的请在评论中留言,我们会尽快修复,谢谢!
☉ 下载本站资源,如果服务器暂不能下载请过一段时间重试!或者多试试几个下载地址
☉ 如果遇到什么问题,请评论留言,我们定会解决问题,谢谢大家支持!
☉ 本站提供的一些商业软件是供学习研究之用,如用于商业用途,请购买正版。
☉ 本站提供的PDFizer 可以将html转换成pdf格式文档的工具资源来源互联网,版权归该下载资源的合法拥有者所有。




















![VCE文件浏览 Visual CertExam Suite 1.9 特别版[附破解文件]](http://img.jbzj.com/do/templets/img/default.gif)




