最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

PDFizer 可以將html轉(zhuǎn)換成pdf格式文檔的工具

  • 軟件大?。?span>420KB
  • 軟件語言:英文軟件
  • 軟件類型:國外軟件
  • 軟件授權(quán):免費(fèi)軟件
  • 軟件類別:瀏覽閱讀
  • 應(yīng)用平臺:windows平臺
  • 更新時(shí)間:2009-03-01
  • 網(wǎng)友評分:
360通過 騰訊通過 金山通過

情介紹

First, set a reference in your project to the 3 DLL's that Pdfizer uses. Here are the 3 dll names to set a reference to:

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.

載地址

下載錯誤?【投訴報(bào)錯】

PDFizer 可以將html轉(zhuǎn)換成pdf格式文檔的工具

      氣軟件

      關(guān)文章

      載聲明

      ☉ 解壓密碼:m.fzitv.net 就是本站主域名,希望大家看清楚,[ 分享碼的獲取方法 ]可以參考這篇文章
      ☉ 推薦使用 [ 迅雷 ] 下載,使用 [ WinRAR v5 ] 以上版本解壓本站軟件。
      ☉ 如果這個軟件總是不能下載的請?jiān)谠u論中留言,我們會盡快修復(fù),謝謝!
      ☉ 下載本站資源,如果服務(wù)器暫不能下載請過一段時(shí)間重試!或者多試試幾個下載地址
      ☉ 如果遇到什么問題,請?jiān)u論留言,我們定會解決問題,謝謝大家支持!
      ☉ 本站提供的一些商業(yè)軟件是供學(xué)習(xí)研究之用,如用于商業(yè)用途,請購買正版。
      ☉ 本站提供的PDFizer 可以將html轉(zhuǎn)換成pdf格式文檔的工具資源來源互聯(lián)網(wǎng),版權(quán)歸該下載資源的合法擁有者所有。

      兴海县| 九江县| 成安县| 江川县| 自贡市| 历史| 苍溪县| 周口市| 博客| 普宁市| 改则县| 油尖旺区| 海盐县| 邹城市| 綦江县| 贡嘎县| 宝兴县| 彭州市| 青浦区| 塔河县| 云和县| 海门市| 广平县| 礼泉县| 茌平县| 宜君县| 阜南县| 班戈县| 株洲市| 新密市| 临猗县| 霍州市| 镇雄县| 朝阳市| 南开区| 泽库县| 合肥市| 临武县| 阜城县| 都江堰市| 古蔺县|