資源簡介
指定目錄下的所有pdf文件批量轉成jpg圖片,生成日志。
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Text;
using?System.Windows.Forms;
using?System.IO;
namespace?PdfToImage
{
????public?partial?class?FrmMain?:?Form
????{
????????public?FrmMain()
????????{
????????????InitializeComponent();
????????}
????????private?void?btnConvert_Click(object?sender?EventArgs?e)
????????{
????????????Pdf2Image.PDFConvert(“Test.pdf“?Application.StartupPath?“hxw“);
????????}
????????private?void?button1_Click(object?sender?EventArgs?e)
????????{
????????????timer1.Start();
????????????Pdf2Image.whritelog(“轉換開始“+System.DateTime.Now);
????????????string?dir?=?textBox1.Text;
????????????Pdf2Image.ListFiles(new?DirectoryInfo(dir));
????????????
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-06-23?14:12??PdfToImage\
?????文件????????1274??2017-06-25?15:23??PdfToImage.sln
?????文件?????????144??2017-06-23?14:12??PdfToImage\app.config
?????目錄???????????0??2017-06-25?15:20??PdfToImage\bin\
?????目錄???????????0??2017-06-23?20:37??PdfToImage\bin\Debug\
?????文件???????15872??2017-06-25?14:24??PdfToImage\bin\Debug\PdfToImage.exe
?????文件?????????144??2017-06-23?14:12??PdfToImage\bin\Debug\PdfToImage.exe.config
?????文件???????30208??2017-06-25?14:24??PdfToImage\bin\Debug\PdfToImage.pdb
?????文件????????5632??2005-12-08?14:51??PdfToImage\bin\Debug\PdfToImage.vshost.exe
?????文件?????1740800??2011-03-17?13:29??PdfToImage\bin\Debug\PDFtoX.dll
?????目錄???????????0??2017-06-23?14:11??PdfToImage\bin\Debug\RC\
?????目錄???????????0??2017-06-23?14:11??PdfToImage\bin\Debug\RC\CIDtoUnicode\
?????文件???????94230??2004-07-28?06:28??PdfToImage\bin\Debug\RC\CIDtoUnicode\Adobe-CNS1.cidToUnicode
?????文件??????145320??2004-07-28?06:28??PdfToImage\bin\Debug\RC\CIDtoUnicode\Adobe-GB1.cidToUnicode
?????文件???????77220??2004-07-28?06:28??PdfToImage\bin\Debug\RC\CIDtoUnicode\Adobe-Japan1.cidToUnicode
?????文件???????91760??2005-07-08?02:05??PdfToImage\bin\Debug\RC\CIDtoUnicode\Adobe-Korea1.cidToUnicode
?????目錄???????????0??2017-06-23?14:11??PdfToImage\bin\Debug\RC\cmap\
?????目錄???????????0??2017-06-23?14:11??PdfToImage\bin\Debug\RC\cmap\JP\
?????文件???????13633??2004-07-28?06:28??PdfToImage\bin\Debug\RC\cmap\JP\78-EUC-H
?????文件????????2059??2004-07-28?06:28??PdfToImage\bin\Debug\RC\cmap\JP\78-EUC-V
?????文件???????13510??2004-07-28?06:28??PdfToImage\bin\Debug\RC\cmap\JP\78-H
?????文件???????13664??2004-07-28?06:28??PdfToImage\bin\Debug\RC\cmap\JP\78-RKSJ-H
?????文件????????2065??2004-07-28?06:28??PdfToImage\bin\Debug\RC\cmap\JP\78-RKSJ-V
?????文件????????2035??2004-07-28?06:28??PdfToImage\bin\Debug\RC\cmap\JP\78-V
?????文件???????15337??2004-07-28?06:28??PdfToImage\bin\Debug\RC\cmap\JP\78ms-RKSJ-H
?????文件????????3046??2004-07-28?06:28??PdfToImage\bin\Debug\RC\cmap\JP\78ms-RKSJ-V
?????文件????????5917??2004-07-28?06:28??PdfToImage\bin\Debug\RC\cmap\JP\83pv-RKSJ-H
?????文件????????4907??2004-07-28?06:28??PdfToImage\bin\Debug\RC\cmap\JP\90ms-RKSJ-H
?????文件??????105030??2004-07-28?06:28??PdfToImage\bin\Debug\RC\cmap\JP\90ms-RKSJ-UCS2
?????文件????????3066??2004-07-28?06:28??PdfToImage\bin\Debug\RC\cmap\JP\90ms-RKSJ-V
?????文件????????4838??2004-07-28?06:28??PdfToImage\bin\Debug\RC\cmap\JP\90msp-RKSJ-H
............此處省略215個文件信息
- 上一篇:c#紙牌視頻識別
- 下一篇:C# 圖片旋轉/放大/透明度
評論
共有 條評論